Set the two numbers as variables: L = larger number, S = smaller number
Use your information. First, the sum is 34:
L + S= 34
Next, the larger is 8 more than the smaller:
S + 8 = L
Now you can substitute S + 8 for L in your first equation:
S + 8 + S = 34
Solve:
2S + 8 = 34
2S = 34 - 8
2S = 26
S = 13
Substitute this into your first equation:
L + 13 = 34
L = 34 - 13
L = 21
Check your answer with the second equation
S + 8 = L
13 + 8 = 21
21 = 21 Check