# If $x=a, y=b$ is the solution of the equations $x-y=2$ and $x+y=4$, then the values of $a$ and $b$ are, respectively(A) 3 and 5(B) 5 and 3(C) 3 and 1,b>(D) $-1$ and $-3$

#### Complete Python Prime Pack

9 Courses     2 eBooks

#### Artificial Intelligence & Machine Learning Prime Pack

6 Courses     1 eBooks

#### Java Prime Pack

9 Courses     2 eBooks

Given:

$x=a, y=b$ is the solution of the equations $x-y=2$ and $x+y=4$.

To do:

We have to find the the values of $a$ and $b$.

Solution:

If $x = a$ and $y = b$ is the solution of the equations $x - y = 2$ and $x+ y = 4$, then these values must satisfy the equations.

Therefore,

$a-b=2$....(i)

$a+b=4$......(ii)

Adding (i) and (ii), we get,

$2a=6$

$a=3$

This implies,

$b=4-3=1$

Updated on 10-Oct-2022 13:27:13