Solveeit Logo

Question

Quantitative Aptitude Question on Algebra

If x and y satisfy the equations |x | + x + y = 15 and x + |y | − y = 20, then (xy) equals

A

5

B

10

C

20

D

15

Answer

15

Explanation

Solution

We have two cases to consider:

Case 1: x0x \ge 0 and y0y \ge 0 In this case, the equations become: 2x+y=152x + y = 15 x=20x = 20

Solving these equations, we get x=20x = 20 and y=35y = -35. This case doesn't satisfy the condition y0y \ge 0.

Case 2: x<0x < 0 and y<0y < 0 In this case, the equations become: y=15y = 15 x=20x = 20

This case also doesn't satisfy the conditions x<0x < 0 and y<0y < 0.

Case 3: x0x \ge 0 and y<0y < 0 In this case, the equations become: 2x+y=152x + y = 15 x2y=20x - 2y = 20

Solving these equations, we get x=10x = 10 and y=5y = -5.

Case 4: x<0x < 0 and y0y \ge 0 In this case, the equations become: y=15y = 15 x+2y=20x + 2y = 20

Solving these equations, we get x=10x = -10 and y=15y = 15.

From the above cases, only the third case satisfies both equations. Therefore, xy=10(5)=15x - y = 10 - (-5) = 15.

So, the value of (xy)(x - y) is 15.