One number exceeds another by 8. The sum of the numbers is 42. What are the​ numbers?

Let's call the smaller number x and the larger number y.

According to the given information, we can set up two equations:
1. y = x + 8
2. x + y = 42

Substitute the value of y from equation 1 into equation 2:
x + x + 8 = 42
2x + 8 = 42
2x = 34
x = 17

Now, substitute the value of x back into equation 1 to find y:
y = 17 + 8
y = 25

Therefore, the two numbers are 17 and 25.