You must remember that \(\theta\) is the angle that the line makes with the positive \(x\)-axis.  You need to convert the angle given in the question to the angle made by the line and the positive \(x\)-axis by doing: