Let the marks of Kamal in mathematics and English be x and y, respectively. According to the question:
x + y = 40........(i)
Also,
(x + 3)(y - 4) = 360
⇒ (x + 3)(40 - x - 4) = 360 [From (i)]
If x = 21,
y = 40 - 21 = 119
Thus, Kamal scored 21 and 19 marks in mathematics and English, respectively.
If x = 12,
y = 40 - 12 = 28
Thus, Kamal scored 12 and 28 marks in mathematics and English, respectively.