x+y = 45 ..(i)
|x-y| < 10 ..(ii)
----------------------------------------------------------------
case 1: if x is larger (x>y)
(x-y) < 10 ..(iii)
solve (i) & (iii) ==> x < 27.5 & y > 17.5 & x > y
so, all posible whole no. pair (x,y)===> (27,18) , (26,19) , (25,20) , (24,21) , (23,22)
-------------------------------------------------------------------
case 2 : if y is larger (x<y)
(y-x) < 10 ..(iv)
solve (i) & (iv) ==> x>17.5 & y<27.5 & x < y
so, all posible whole no. pair (x,y)===> (18,27) , (19,26) , (20,25) , (21,24) , (22,23)
------------------------------------------------------------------------------
Thus, total number of possible pair for (x,y) =10.