In a class test, the sum of Kamal's marks in mathematics and English is 40. Had he got 3 marks more in mathematics and 4 marks less in English, the product of the marks would have been 360. Find his marks in two subjects separately.
LET MARKS IN MATHS=X
MARKS IN ENGLISH=40−X
IF HE GOT 3 MORE IN MATHS,GOT 4 LESS IN ENGLISH
MARKS IN MATHS=X+3 M,MARKS IN ENGLISH=40−X−4=36−X
PRODUCT=360
(36−X)(X+3)=360
(36X+108−X2−3X)=360
(33X+108−X2)=360
X2−33X+360−108=0
X2−33X+252=0
X2−21X−12X+252=0
X(X−21)−12(X−21)=0
(X−12)(X−21)=0
X=12,21
IF MARKS IN MATHS=12 THEN MARKS IN ENGLISH=40-12=28
IF MARKS IN MATHS=21 THEN MARKS IN ENGLISH=40-21=19