Selling price and margin from cost and desired markup.
Markup and margin are not the same: a 50% markup on cost results in a 33% margin, not 50%.