Answer: 5
Step-by-step explanation:
Let x = the number of games Rocco played.
Rent of shoes = $7
Charge per game = $6
Total Charge = 6x+7
As per given,
[tex]6x+7 \leq40\\\\\Rightarrow\ 6x\leq 40-7\\\\\Rightarrow\ 6x\leq33\\\\\Rightarrow\ x\leq\dfrac{33}{6}\\\\\Rightarrow\ x\leq5.5[/tex]
Hence, the greatest number of games Rocco could have played = 5