The teacher will be very surprised to see your correct solution 😉
2 2 a - 2*b - 2*a*b - 2*a*c = 0
a^2 - 2*a*b - 2*a*c - 2*b^2 = 0