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