Question 785634
Let x be the first number.
Let y be the second number.

x - y = 24
y = 3x + 2

This is a system of linear equations in two variables. You can solve using the substitution method.

I hope this helps.