I spent 3/5 of my pocket money and had $20 left. what did I have at first

0.4x = 20

I need u to show the working

To find out how much pocket money you had at first, we can set up an equation.

Let's assume the initial amount of pocket money is "x."

You spent 3/5 of your pocket money, which is equivalent to (3/5) * x.

After spending that amount, you had $20 left.

So, our equation becomes:

x - (3/5) * x = $20

To solve for x, we can simplify the equation:

(2/5) * x = $20

Next, let's isolate x by multiplying both sides of the equation by the reciprocal of (2/5):

x = $20 * (5/2)

Now, multiply $20 by 5 and divide the result by 2 to find the value of x:

x = $100 / 2

x = $50

Therefore, you had $50 at first.