Let's denote the cost of each bag of lemons as \( x \). Since Robert buys 5 bags of lemons, the total cost for the lemons would be \( 5x \).
We know that the total amount he paid for both cheese and lemons is $24.36. He paid $5.31 for the cheese. Therefore, we can set up the following equation:
\[ 5.31 + 5x = 24.36 \]
Now we can solve for \( x \):
-
Subtract $5.31 from both sides of the equation: \[ 5x = 24.36 - 5.31 \]
-
Calculate the right side: \[ 5x = 19.05 \]
-
Divide both sides by 5 to find \( x \): \[ x = \frac{19.05}{5} \]
-
Calculate the value: \[ x = 3.81 \]
Thus, the cost of each bag of lemons is $3.81.