Question 1026744
{{{y=mx+b}}}
{{{b=y-mx}}}


slope m for parallel, slope -1/m for perpendicular.  Substitute the coordinates of the needed point (x,y) for b.