write an solve an equation

You went to lunch with your friend and the bill was $28.00. Your lunch was $4.00 more than your friend's. How much was your friend's lunch?

To solve the equation, let's assume the cost of your friend's lunch is x.

Since your lunch was $4.00 more, your lunch would be (x + $4.00).

Adding your friend's lunch cost to your lunch cost should equate to the total bill, which is $28.00.

So, the equation becomes: x + (x + $4.00) = $28.00.

Combining like terms, we have: 2x + $4.00 = $28.00.

To isolate the variable, subtract $4.00 from both sides: 2x = $28.00 - $4.00.

Simplifying the right side of the equation gives: 2x = $24.00.

Finally, we can solve for x by dividing both sides by 2: x = $24.00 / 2.

Therefore, the cost of your friend's lunch (x) is $12.00.