Let CP = 100,
42 % increase => SP = 142
10 % discount in SP => ((142 x 10)/100) = 14.2
So 1st SP = (142 - 14.2) = 127.8, again 12 % discount in 1st SP ((127.8 x 11)/100) = 14.058
2nd SP = (127.8 - 14.058) = 113.742,
So finally CP = 100, SP = 113.742, => gain = 13.742%.