Correct option is C
Given:
x2+xy+x=18
y2+xy+y=24
Formula Used:
x2+2xy+y2=(x+y)2
Solution:
Adding the two given equations:
(x2+xy+x)+(y2+xy+y)=18+24x2+xy+x+y2+xy+y=42
(x+y)(x+y+1)=42 factor of 42 could be = 6⋅7or−6⋅−7
for fist case;
(x+y)(x+y+1)=6×7
comparing this we get:
x + y = 6
for second case;
(x+y)(x+y+1)=−7×−6
comparing this we get;
x + y = - 7
Thus, the value of x + y could be 6 or -7.