A person made a total profit of Tk. 296 by selling a chair at a loss of 7% and a table at a profit of 17%. If he sells the chair at a profit of 7% and the table at a profit of 12%, his profit is Tk. 400. What is the actual price of the chair and the table?