The cost of games depends on the number of games and its cost.
In the given question there are G number of games.The cost to bowl a game is $3.The shoe rental is $2.
Cost to bowl one game =$3.
Cost to bowl G games =$3G
If shoe rental is for all the games then cost of G games is $3G+2.
If Shoe rental is not for all games then cost of G games =$3G+$2G=$5G.