solve by the substitution method

3x+5y=21
x=51-9y

Substitute 51 -9y for x in the first equation and solve for y. Put that value in the second equation to find x. Check by putting both values into the first equation.