Writing equations of lines parallel and perpendicular to a given line through a point