You probably substituted correctly into Equation B, but then made a mistake solving for y. If you check your answer by substituting into Equation B, you get or , which is false.