The correct answer is D. 14c + 5g + 12.
The entry fee is $6 each. 6 + 6 = 12
Each girl goes on 7 rides which cost c dollars. 7c + 7c = 14c
The number of games both girls play totals 5. And each game costs g dollars. 2g + 3g = 5g.
Add all the costs up and you get 14c + 5g + 12 as their total cost for going to a carnival.