For $49 you can get 7 packages of balls each costing $7, because 7 times $7=$49.
Each package bought entitles you to a free ball, so you get 7 free balls. There are 5 balls in a package, so you get 7×5=35 plus 7 free=42 balls. (And you have $1 change from $50.)