Minerva buys used bicycles, repairs them, and sells them for a profit. She bought a bicycle for $10, repaired it, and sold it for $50. What was the percent increase in the price of the bicycle.

A. 400%
B. 80%
C. 40%
D. 4%