The price for adults is $8 and for students it's $5.
For the Snyder's, they had 2 adults and 3 students and 5+5+5+8+8=31 which was the cost of their tickets in total. For the Ramos, they had 2 adults and 2 students and 5+5+8+8=26 which was the cost of their tickets in total.