A person sells his table at a profit of 12\( \frac{1}{2} \)% and chair at a loss of 8\( \frac{1}{3} \)% but on the whole he gains โน25. On the other hand, if he sells the table at a loss of 8\( \frac{1}{3} \)% and the chair at a profit of 12\( \frac{1}{2} \)% then he neither gains nor loses. Find the cost price of the table.