Answer
We know that A will be 0 for a horizontal line, while B will be 0 for a vertical line.
Work Step by Step
When A is equal to 0, we are left with an equation of the form y= n, where n is some number. We know that this is the equation of a horizontal line. Similarly, when b equals 0, we are left with x=n, the equation for a vertical line.