# It's costs $3 to bowl a game and$2 for shoe rental. How do you write an expression for cost of g games?

If shoes are for all games in row, $P = 2 + 3 g$
If not, $P = 5 g$,with g the number of games
The price depends:if shoes are included for the whole games, you just have to pay them once and then you have to pay $g g a m e s$, so $P \left(g\right) = 2 + 3 g$
Else, you have to pay $g s h o e s \mathmr{and} g b o w l p a r t y$, so $P \left(g\right) = 2 g + 3 g \iff P \left(g\right) = 5 g$