Sonya spent 2/5 of her money and then had $18 left. How much money did Sonya originally have?

0.4x + 18 = x

18 = 0.6x

30 = x

To find out how much money Sonya originally had, we can set up an equation. Let's assume the amount of money Sonya originally had is x dollars.

According to the information given, Sonya spent 2/5 of her money, which means she has 3/5 (since 5/5 - 2/5 = 3/5) of her money left.

We know that Sonya had $18 left. So we can set up the equation:

3/5 * x = $18

To solve for x, we can multiply both sides of the equation by 5/3:

(3/5 * x) * (5/3) = $18 * (5/3)

This simplifies to:

x = $18 * (5/3) = $30

Therefore, Sonya originally had $30.