i gave away 20 marbles leaving 60%, how many marbles did i have

0.4x = 20

x = 20/0.4
x = 50