The value of solution X and y of quadratic equation 2x-5y = 7, x-4y = k is also equation x + y = 7, then the value of K is the same

The value of solution X and y of quadratic equation 2x-5y = 7, x-4y = k is also equation x + y = 7, then the value of K is the same

According to 2x-5y = 7 and X + y = 7, we can solve x = 6, y = 1 and substitute x-4y = k to get k = 2