Let S = the smaller number and L = the larger one.
Then,
Replace L with S+6 in the first equation:
Then,
So,
So, the smaller number is 4. The larger is 6 more than 4 so the larger number = 10.
To verify that the numbers are 4 and 10 we note the the sum of the smaller number and three times the larger number is