Given:
S.P. of the 1st chair =₹ 500
Gain = 20%
C.P. of the 1st chair = 100× s.p/(100+profit%)
= 500×100/(100+20)
=500×100/(120)= 50000/120= 5000/12= 1250/3
C.P. of the 1st chair =₹ 1250/3
S.P. of the 2nd chair = ₹ 500
Loss = 12%
C.P. of the 2nd chair =100× s.p/(100 - loss%)
= (500×100)/(100−12)
=500×100/(88)
=500×25/22
=250×25/11
=6250/11
C.P. of the 2nd chair = ₹ 6250/11
S.P. of both the chairs = 500 +500= ₹ 1000
C.P. of both the chairs= 1250/3 + 6250/11
= (13750+18750)/33
=32500/33
Net gain = 1000 – 32500 /33
=(33000- 32500)/ 33 = 500 /33
Net gain = 500/33
=Gain % =( gain / c.p ) × 100
= (500/33) × 100 /(32500/33)
=(500/32500)×100
= 50000/32500
= 500/325
= 100 /65
= 20/13
= 1.5%
Hence, he gain 1.5 % in the whole transaction.