Solution:

As the rectangle is parallel to coordinate axes, the coordinates of the points of the rectangle would be (x1, y1), (x2, y1), (x2, y2), (x1,y2)

 x1, x2 lie between 11 and 29 (both not included)

 =>29-11-1 = 17 possible values for x exists


 Possible combinations for x1, x2 would be 17C2 = 8*17


 y1, y2 lie between 5 and 13 (both included) =>13-5+1 =9 possible values for y exists


=>Possible combinations for y1, 22 would be 9C2 = 36

Possible ways of constructing rectangle is by selecting any of the combination of x1,x2 and y1,y2

 =17C2 * 9C2

= 8*17*36 = 4896