Each child ticket for a ride cost three dollars while each adult ticket cost five dollars. If the ride collected a total of $115 and 33 tickets were sold how many of each type of tickets were sold?