We know the cost price of two boxes = Rs 1300
So let us consider cost price of one box be Rs x
Cost price of other box = Rs 1300 – x
Selling price of first box = x + x × 20/100
= x + x/5
= Rs 6x/5
Selling price of second box = (1300 – x) – (1300 – x) × 12/100
= Rs (28600 – 22x)/25
By equating SP of first and second box we get,
6x/5 = (28600 – 22x)/25
150x = 28600 × 5 – 110x
150x + 110x = 28600 × 5
260x = 28600 × 5
x = (28600 × 5)/260
= 550
∴ Cost price of first box = Rs. 550
Cost price of second box = Rs1300 – Rs550 = Rs 750