A furniture store pays a wholesale price for a mattress. Then, the store marks up the retail price to 150% of the wholesale price. Later, they put the mattress on sale for 50% off of the retail price. A customer just bought the mattress on sale and paid $1,200.

Part A What was the retail price of the mattress, before the discount?

Part B What was the wholesale price, before the markup?