Consider the following statements :
1. For an equation of a line,
`x cos q + y sin q = p`, in normal form, the length of the perpendicular from the point (a, b) to the line is
`|a cos q+b sin q+p|`.
2. The length of the perpendicular from the point (a, b) to the line `x/a+y/b=1` is `|(a alpha+b beta-ab)/sqrt(a^(2)+b^(2))|`.
Which of the above statements is/are correct ?
A. 1 only
B. 2 only
C. Both 1 and 2
D. Neither 1 nor 2