Let x, y, and z be the three whole numbers:
- The sum of three whole numbers is 7: x+y+z=7
- The second number (y) is 1 more than twice of the third number (z): y = 2z+1
- The sum of the first (x) and third number (z) is 3 less than the second number (y): x+z = y-3
Solve for y:
x + y + z = 7 {equation 1}
x + z + y = 7 {rearrange (commutative law of addition)}
(y-3) + y = 7 {equation 3: x+z = y-3}
2y - 3 = 7
2y = 10
y = 5
Solve for z:
y = 2z+1 {equation 2}
5 = 2z+1 {y=5}
4 = 2z
2 = z
Solve for x:
x + y + z = 7
x + 5 + 2 = 7 {y=5, z=2}
x + 7 = 7
x=0
Check:
x+y+z=7 {Verify equation 1 is true}
0+5+2 = 7
7=7 Check!
y=2z+1 {Verify equation 2 is true}
5=2*2+1
5=4+1
5=5 Check!
x+z=y-3 {Verify equation 3 is true}
0+2=5-3
2=2 Check!