Question 1057146
{{{500/x}}}, volume of paint bought, in liters.  Turn the units the right way and that's what you have.


Spilled 5 liters;
{{{500/x-5}}}, volume the painter now has.
-
Sells that for $2 per liter more than he paid;
{{{(500/x-5)(x+2)(liters)(dollars/liter)}}}
The sum of money taken as this revenue was  {{{(500/x-5)(x+2)(dollars)}}}.
-
Profit was $40.
revenue-cost=profit.
{{{highlight_green((500/x-5)(x+2)-500=40)}}};
work with that and see what it becomes.