Divide the cost by one minus the margin. $100 divided by 0.70 is $142.86. That price carries a 42.9% markup and leaves $42.86 of profit, which is 30% of the price.