Let a and c represent the numbers of adult and children's tickets sold, respectively. The system of equations will have one equation for revenue and one equation for number of tickets.
The revenue equation is
18a +9c = 4959
The number of tickets equation is
a + c = 319
_____
The solution can be found any number of ways. It is
(a, c) = (232, 87)