2x+5y=34..............(1)
x+2y=14
x=14-2y..........(2)
substitute value of x from (2) in (1)
2(14-2y)+5y=34
distribute 2 over the bracket
28-4y+5y=34
28+y=34
y=34-28
y=6
plugging this y in second equation to get x
x=14-2y
x=14-2(6)
x=2
answer x=2, y=6