Find the equation of a line through two points, parallel to a line and passing through a point, and perpendicular to a line passing though a point.