Let x and y be such numbers. Since their sum is 24, then:
Since the second number is 3 times the first number, then:
Solve the system of equations using the substitution method. Replace y by 3x on the first equation and solve for x:
Substitute x=6 in the expression for y to find its value:
Therefore, those numbers are 6 and 18 (notice that 6+18 = 24 and 18 is three times 6)-