substitute 3x for y in the second equation