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

Let's assume Sarah bought x first class tickets.

So, the number of coach tickets bought by Sarah is 5 - x (since the total number of people on the trip is 5 including Sarah).
The price of each first-class ticket is $940, so the total cost of first-class tickets is x * $940.
The price of each coach ticket is $360, so the total cost of coach tickets is (5 - x) * $360.
According to the problem, the total budget for airfare is $2960, so:
x * $940 + (5 - x) * $360 = $2960
The left-hand side can be simplified: 940x + 1800 - 360x = 2960
Combining like terms, we get: 580x + 1800 = 2960
Subtracting 1800 from both sides, we get: 580x = 1160
Dividing both sides by 580, we get: x = 2
Therefore, Sarah bought 2 first-class tickets and 5 - 2 = 3 coach tickets.