Jamila sold a table and a chair for Rs.1050,thereby making a profit of 10% on a table and 25% on the chair. If she had taken a profit of 25% on the table and 10% on the chair she would have got Rs.1065. Find the cost price of each.
Table Rs.500,chair Rs.400