Without checking the trig identities this looks like a mostly correct approach. $$y=mx+c \rightarrow m=\frac{\Delta y}{\Delta x}$$
For finding $c$ few details are provided. I would normally plug in one of the points and solve for $c$. It appears that you may have attempted this?
$$ \sin\Phi = m\cos \Phi+c$$ $$ c = \sin \Phi - m \cos\Phi$$ seems you may have a sign issue with your choice of $c$