Let x and y be the two numbers.
Their sum is 140, so
x + y = 140
Twice the first number x is 2x. 5 more than this is 2x + 5. This is the value of the second number, so
y = 2x + 5
Substitute this into the first equation and solve for x :
x + (2x + 5) = 140
3x + 5 = 140
3x = 135
x = 135/3 = 45
Then
y = 2*45 + 5 = 95