25 + 15 + 0.75g < = 50
40 + 0.75g < = 50
0.75g < = 50 - 40
0.75g < = 10
g < = 10/0.75
g < = 13.33.....u can play the game at most 13 times
40 + 0.75(13) = 49.75.....if u play the game the maximum number of times (13) then u WILL NOT spend the entire $ 50