The correct option is
A 21 triangles,
7 squares
Triangles : MLK, ABM, BPN, MPO, LPJ, QTO, STO, STQ, GHI, EFG, PNE, GPO, BPE, HPJ, QRO, TQR, RSO, QRS, RST, MPG, LPH.
∴ Total number of triangles in the figure
=21.
Squares : KJOM, JOGI, ANOM, NFGO, CDEB, QRST, AFIK
∴ Total number of squares in the figure
=7.