The equation of a straight line on which the length of perpendicular from the origin is four units and the line makes an angle of 1200 with the x-axis is
x3+y+8=0
x3−y=8
x3+y=8
x+3y+8=0
Given that the slope is −3,
Therefore, the line is
y=−3x+c
or 3x+y=c
Now, c2=4 or c=±8