Each child ticket for a ride costs $3, while each adult ticket costs $5. The ride collected a total of $150, and 40 tickets were sold. How many of each type of ticket were sold?
A150 child and 40 adult
B24 adult and 10 child
C30 child and 10 adult
D25 child and 15 adult
A150 child and 40 adult
B24 adult and 10 child
C30 child and 10 adult
D25 child and 15 adult