The correct option is D 28 triangles, 5 squares
Possible triangles are :
1.ABI, 2.AIH, 3. BGI, 4. GHI, 5. BCJ, 6. BGJ,7. CFJ, 8. FGJ, 9. CDK, 10. CFK, 11.DEK,12. EFK, 13.ABH, 14. BGH, 15. AGH, 16. ABG, 17. BCG, 18. BCF, 19. BFG, 20. CFG, 21. CDE, 22. CEF, 23. CDF, 24. DEF, 25. ACG, 26. BDF, 27. BFH, 28. CEG
Possible squares are :
1. ABGH, 2. BCFG, 3. CDEF, 4. BJGI, 5. FJCK