im studying exponents. 50 is my result number How did I get using exponents

2*5^2

The ratio of red jelly beans to yellow ones is 3:4. If I eat 3 red ones and 6 yellow ones, the ratio is 4:5. How many yellow ones to begin with?