Let's call the first number x and the second number y.
The sum of the two numbers is 22, so we can write the equation:
x + y = 22
Three times one number increased by five is 35, so we can write the equation:
3x + 5 = 35
To find the values of x and y, we can solve these two equations simultaneously.