All straight lines can be written in the form of y = mx + b, where m is the slope and b is the y-intercept. Alternatively, lines can be written in the general form of Ax + By + C = 0, where A, B, and C are integers or surds. Lines parallel to the x-axis have the form y = c, where c is a constant. Lines parallel to the y-axis have the form x = k, where k is a constant. The example shows finding the equation of a line perpendicular to another line in general form.