Thats a proportion. i'll show you the formula that is easier to solve with that is more universal and you can try to see how it relates to that one seeing as this topic is VERY important.
You know that 20%=.2
Let x be the number
.2x=50
x=250
If you need more help still just tell me.