A house and a garden together cost Rs 8,40,000. The price of the garden is times the price of the house. Find the price of the house and the garden.