To be parallel to a line, the slope must be the same as the line. Then, you plug 3,-1 into y=6x, and add or subtract to balance the equation. You do the same to find the perpendicular line, but the slope must be the negative reciprocal of the line it is perpendicular to.