When solving a system algebrically how can you tell if solution is the equation of the line

The solution should satisfy both Eqs.