Solution:-
Let us assume that the cost price of the table be 'x' Rs.
Then in the case of loss = x - (10 % of x)
⇒ x - 10x/100
⇒ x - x/10
⇒ 9x/10 Rs.
⇒ now in case of profit,
⇒ x + (10 % of x)
⇒ x + 10x/100
⇒ x + x/10
⇒ 11x/10 Rs.
The difference between profit and loss = (11x/10) - (9x/10) = 940
⇒ 2x/10 = 940
⇒ 2x = 9400
⇒ x = 9400/2
⇒ x = 4700
So, cost price of table is 4700 Rs.