if i have $40 and i buy a water bottle that cost $2.00 and four bottles of apple juice. if i have $20 remaining how much did each bottle of apple juice cost

If you bought x bottles, then you just need to solve

2 + 4x + 20 = 40