Let x represent the first number and y represent the second number.
The second number is 2 more than 3 times the first number:
The sum of the two numbers is 22:
Let us replace y by \(2+3x\) in the previous equation (as \(y=2+3x\) holds):
Combine like terms:
Subtract 2 from each side:
Divide each side by 4:
Thus we obtain that the first number is x=5
Let us then determmine the second number by evaluating \(y=2+3x\) as \(x=5\):
Thus the two numbers are then 5 and 17.
Result: 5 and 17