How do you solve this problem?

3x = 4y
x + y = 21

Help please.

Substitute 21 -x for y in the first equation.

3x = 4(21-x)
7x = 84
x = 12
y = 21-x = 9