-------------------------------------------------------------------------
Let x be the first number. The second number thrice the first, and the third is 5 less than twice the second.
------------------------------------------------------------------------
FIRST x
SECOND 3x
THIRD 2*3x-5
Sum of them is S.