Explanation
Let the number of people with coach tickets be x and the number of people with first class tickets be y. Since the trip goers contained a total of 18 people we will have;
[tex]x+y=18[/tex]A coach ticket cost $170 dollars and the first class tickets cost $1010. Also, Sarah spent a total of $10620 to buy the tickets. This would give us;
[tex]170x+1010y=10620[/tex]We will now solve the equation simultaneously.
[tex]\begin{gathered} \begin{bmatrix}x+y=18\\ 170x+1010y=10620\end{bmatrix} \\ isolate\text{ for x in equation 1}\Rightarrow x=18-y \\ \mathrm{Substitute\:}x=18-y\text{ in equation 2} \\ 170\left(18-y\right)+1010y=10620 \\ 3060+840y=10620 \\ 840y=10620-3060 \\ 840y=7560 \\ y=\frac{7560}{840} \\ y=9 \\ \end{gathered}[/tex]We will substiuite y =9 in x=18-y. Therefore;
[tex]\begin{gathered} x=18-9=9 \\ x=9 \end{gathered}[/tex]Answer: From the above, Sarah bought 9 coach tickets and 9 first-class tickets.