A person bought a car and sold it for Rs 3,00,000. If he incurred a loss of 20%, then how much did he spend to buy the car?