Declare variables for the 2 numbers:

- Let l be the larger number
- Let s be the smaller number

We're given two equations:

- l = s + 4
- l + s = 40

Subtract 4 from each side in equation (1)

l - 4 = s + 4 - 4

Cancel the 4's and we get:

s = l - 4

Our given equations are now:

- s = l - 4
- l + s = 40

l + l - 4 = 40

Grouping like terms for l, we get:

2l - 4 = 40

Add 4 to each side:

2l - 4 + 4 = 40 + 4

Cancelling the 4's on the left side, we get

2l = 44

Divide each side of the equation by 2 to isolate l:

2l/2 = 44/2

Cancel the 2's on the left side and we get:

l =

**22**