Apart from the location at the top left corner of the diagram, there are seven locations on the horizontal row, and four locations on the vertical column. There are three ways to place dots on three of these locations to form a triangle:
First way: one dot at the corner, one from the row of seven, and one from the column of four;
Second way: two dots on the row of seven, and one on the column of four (as in the above diagram);
Third way: one dot on the row of seven, and two on the column of four.
Can you count the number of triangles formed in each of these three ways?