Sarah took the advertising department from her company on a round trip to meet with a potential client. Including Sarah a total of 14 people took the trip. She was able to purchase coach tickets for ​$290 and first class tickets for ​$940 . She used her total budget for airfare for the​ trip, which was ​$9910 . How many first class tickets did she​ buy? How many coach tickets did she​ buy?

number of first class tickets bought

Let's assume the number of coach tickets bought is x.

Then, the number of first class tickets bought will be (14-x) (since there were a total of 14 people, including Sarah)
The cost of x coach tickets is 290x
The cost of (14-x) first class tickets is 940(14-x)
According to the problem, the total budget for airfare is $9910.
So, 290x + 940(14-x) = 9910
290x + 13160 - 940x = 9910
-650x + 13160 = 9910
-650x = 3240
x = 3240/-650
x ≈ -4.9846
Since the number of tickets cannot be negative, x ≈ 5.
So, the number of coach tickets bought is 5 and the number of first class tickets bought is 14-5 = 9.

Number of first class tickets bought = 9
Number of coach tickets bought = 5