Each child ticket for a ride cost $3 each adult ticket cost $5 if the ride collected a total of $150 and 40 tickets were sold how many of each type of ticket were sold let's see me the number of child tickets and a be the number of adult tickets