The idea

Count the triangles, squares or rectangles whose every side lies on a drawn line. JIPMAT asks one each year: triangles in 2024 (Q23, 21 triangles) and 2026 (Q17, 11 triangles), squares and rectangles in 2025 (Q2).
Textbook vs exam method
Textbook method
- Letter every corner and every crossing point.
- Take the corners in order (A, B, C, …). For each, list the triangles that have it as their first corner, using only later letters.
- A triple is a triangle only if each pair of its corners lies on one drawn straight line and the three are not on one line.
- Add the counts.
Exam method
- Fan + cross lines. lines from one corner and lines crossing all of them give triangles.
- Grids. squares size by size (: ); rectangles .
- Square with both diagonals and both midlines. 8 + 4 + 4 = 16 triangles.
- Anything else. split the figure into parts you know and count the triangles that cross between parts separately.
Worked examples
Triangle with two lines from the top corner and one line across the middle.
Solution: 4 lines from the top, 2 lines across: .
Squares in a 4 by 4 grid.
Solution: 16 + 9 + 4 + 1 = 30.
Rectangles in a 4 by 2 grid.
Solution: .
JIPMAT 2026 Q17: a pentagon with lines from the top corner to the two lower corners and from the two side corners to the middle of the base.
Solution: 5 triangles with the top corner, 6 without it: 11.
Triangle with sides cut into three equal parts and parallels drawn.
Solution: 9 smallest + 3 middle-sized + 1 whole = 13.
Traps
- Big ones missed: the triangle made of two or four pieces is still a triangle.

- False triangles: a region with a bent side is not a triangle.
- Double counting: list each triangle once by fixing an order of corners.
Formulas
In the exam
- Letter every corner and crossing point, then count the triangles by their highest corner (or left-most corner) so none is counted twice.
- Count by size: smallest pieces first, then shapes made of 2, 3, 4 … pieces.
- Grid of squares: count squares size by size; rectangles = choose two vertical and two horizontal lines.