A zoo train ride costs $3 per adult and $1 per child. On a certain day, the total number of adults (a) and children (c) who took the ride was 30, and the total money collected was $50. What was the number of children and the number of adults who took the train ride that day, and which pair of equations can be solved to find the numbers?