Let x be the first number.
Then 144-x = second number
Minimize S = 2x + 5(144 - x)2
= 2x + 5(20736 - 288x + x2)
= 5x2 - 1438x + 103680
The graph of S is a parabola opening upward.
Minimum occurs when x = -(-1438) / [2(5)] = 143.8
The numbers are 143.8 and 0.2.