Answer:
Sarah purchased 2 first class tickets and 5 coach tickets.
Explanation:
Let's call the number of first class tickets purchased "x".
The number of coach tickets purchased would be 7-x.
We know that the total spent on first class tickets was $1170 * x and the total spent on coach tickets was $320 * (7-x).
The total budget was $3940, so we can set up the following equation:
$1170 * x + $320 * (7-x) = $3940
Expanding the right side:
$1170 * x + $320 * 7 - $320 * x = $3940
Combining like terms:
$800 * x = $3940 - $320 * 7
Subtracting $320 * 7 from both sides:
$800 * x = $3940 - $2240
$800 * x = $1700
Dividing both sides by 800:
x = 2.125
Since x must be a whole number, Sarah purchased 2 first class tickets and 5 coach tickets.