X+y=10.....(1)

x-y=14......(2)

add eq.(1) and eq.(2)

2x = 24

x = 12

put the value of x into eq.(1)

12+y=10

y=2

so, values are ; x=12 and y=2

x-y=14......(2)

add eq.(1) and eq.(2)

2x = 24

x = 12

put the value of x into eq.(1)

12+y=10

y=2

so, values are ; x=12 and y=2