One number is 8 more than twice another number. Find the numbers if their sum is 50

y = 2x+8

y = 50 - x
so
2x+8 = 50-x
3x=42
x = 14
y=36