If the markup is given in terms of the original price, divide the marked-up price by (1+markup).
Example
The marked-up price is 50, the markup is 25%.
The original price is 50/(1+.25) = 40.
Example
The marked-up price is 50, the markup is 25%.
The original price is 50/(1+.25) = 40.