How do you do this problem about theatre seating?

A theatre contains 500 seats and the ticket prices for a recent play were $43 for adults and $28 for children. If the total proceeds for one matinee were $16,805, how many of each ticket were sold?

is it like 500 = 43x + 28(43-x) or something??
3 answers 3