if I had a base value, which was marked up by say, 10%, then was marked up again by 15%, to give a final value, what calculation would work to work out the base value if only given the final?

And what would be the best way to set it up to allow for variations in those percentages?

Thanks