The general form of the equation of a straight line is: Ax+By+C = 0, wherein A or B can be zero, but not both at the same time.
The general form is not always the most useful form, and you may prefer to use: THE SLOPE-INTERCEPT FORM of the equation of a straight line.