Identifying parallel and perpendicular lines from equations