Each child ticket for a ride costs $3, while each adult ticket costs $5. if the ride collected a total of $115, and 33 tickets were sold, how many of each type of ticket were sold