"The diagram shows 11 points marked in two rows". We can't see the diagram! How many points are in each row?
Suppose there are "n" points in the first row and 11- n points in the second row. A can be any one of the n points and b can be any one of the other n- 1 points. That would make n(n-1) possible A,B pairs except that swapping A and B would give the same triangle so there are actually n(n-1)/2 pairs, A triangle would be A and B connected to any of the 11- n points on the second line. That is n(n-1)(11-n)/2 triangles. You say the answer is 7. Is there an integer n so that n(n-1)(11- n)/2= 7? That is the same as n(n-1)(11- n)= 2*7. Both 2 and 7 are prime so we must have one of the three factors 1, another 2, and another 7. Clearly we would have to have n= 2 so that n-1= 1 but then 11- n= 9, not 7! There is no way you can have "11 points marked in two rows" and have 7 triangles.
Did you mean that the two rows have 11 points each? In that case, using the same argument as above There are 11(11-1)/5= 22 possibilities for AB then 22(11)= 242 triangles.
Please tell us how many points there are in each row!