To solve a system of equations by substitution, the first thing that you need to do is solve for either x or y in terms of the other. For this explanation, I'm going to choose x. So:
First, solve for x in terms of y using the first equation:
x+3y=15
x = 15-3y (subtract 3y from both sides)
So we have that x = 15-3y.
Now that we've solved for x, we can plug that in everywhere we have an x in the second equation. This gives us:
2(15-3y)-3y = -6 (plug in)
30-6y-3y = -6 (simplify)
30-9y = -6 (combine like terms)
-9y = -36 (subtract 30 from both sides)
y = 4 (divide by -9)
So we have that y = 4. Now we have to go back to what we found x to be and plug in our new y. So:
x = 15-3y becomes x = 15 - 3(4) = 15-12 = 3.
So x =3. Now that we have our x and our y, we're done with a final answer of x = 3, y = 4