The solution of the quadratic equation 3x + y = 10 is

The solution of the quadratic equation 3x + y = 10 is

When x = 1, y = 1; when x = 2, y = 4; when x = 1, y = 7; when x = 0, y = 10. I'm a novice. I'm doing a task. Would you please give me this experience