Julie sold 500 tickets for the spring musical. Students tickets cost $2 and adult tickets cost $5. Julie's sales totaled $1789. How many students and how many adult tickets did Julie sell?
Let x = number of adult tickets, the 500-x = child tickets
$5 * x + $2 * (500 - x) = $1789
5x + 1000 - 2x = 1789
3x = 789
x = adults = 263
children = 500 - x = 237