Ji went to CVS and bought a $5 drink and many bags of chips for $2 each. In total, he paid $39. How much was each bag of chips? Explain your answer.

( please help it’s due tomorrow)