Let x and y be the two unknown numbers.
- One number is five less than another: x = y - 5
- The sum of the two numbers is 45: x + y = 45
x + y = 45
Substitute y-5 in place of x:
y - 5 + y = 45
2y - 5 = 45
2y = 50
y = 25
Find x:
x = y-25
x = 25 - 5
x = 20