Let the C.P. of the first box which was sold at a profit of 20% be Rs.x Then the C.P. of the second box which was sold at a loss of 12% will be Rs.(1300 - x)
Since the first box was sold a profit of 20% its S.P. = Rs.120100×x
Because the 2nd box was sold at a loss of 12% Hence its S.P. = Rs.88100×(1300−x)
Since the S.P. of both the boxes are the same We have 120x100=88(1300−x)100⇒15x−11(1300−x)⇒15x+11x=11×1300
⇒x=11×130026=550