Solve and check x+y=12;y=3x

x+y=12;y=3x
x+3x=12
4x=12
4x/4=12/4
x=3
y=3x
y=(3)(3)
y=9

so, did you check?

3+9=12

so, ok.