You've got 8 possible lengths and 8 possible widths.
by the congruence restriction a x b is the same as b x a
there are 8 squares
then there are 8x7 possible rectangles but we only get half of these due to the congruence restriction, so there are 28 rectangles.
28+8 = 36