I was recently working through the IB HL textbook and I came across two interesting problems.
Exercise 8E
Question 18.
Line A contains 10 points and line B contains 7 points. If all points on line A are joined to all points on line B, determine the maximum number of points of intersection between A and B.
Question 19.
10 points are located on [PQ], 9 on [QR] and 8 on [RP]. All possible lines connecting these 27 points are drawn. Determine the maximum number of points of intersection of these lines which lie within triangle PQR.
The answer for the first question is relatively easy to get. However it is the solution which the book provides, combined with the fact that it works which perplexes me. The answer for 18 is $$\binom{10}{2}\binom{7}{2}=945$$
My approach to the problem was: if you draw lines between the first 2 dots of the 7 with all the other 10, the number of intersections is 45. When you draw lines from the third dot you get 90 (a multiple of 45). As it turns out this is merely an extract of the multiplications table. Once you add up all the numbers you get 945 (or to shorten the calculations I just took 45 multiplied by 21)
My question is how is combinations related to this question, and if I were to see this question for the first time, how would I go about approaching it to get the solution provided in the book.
Secondly, the answer to 19 is $$\begin{align*} c=\binom{10}{2}\binom{9}{2}&+\binom{10}{2}\binom{8}{2}+\binom{9}{2}\binom{8}{2}+\binom{10}{2}\binom{9}{1}\binom{8}{1}+\\ &+\binom{10}{1}\binom{9}{2}\binom{8}{1}+\binom{10}{1}\binom{9}{1}\binom{8}{2} \end{align*}$$ How did they get the last 3 components of the equation? I get where they come from, but not how to get them.