The cost of a room in a hotel is partially fixed and partially varying with the number of hours. A person staying for 10 hours paid Rs. 600 and a person staying for 15 hours paid Rs. 840. Find the fixed cost and the variable cost per hour.