They calculated the slope of each line using \[\Delta y \over \Delta x\]
When the slopes are equal to each other (in this case they were both 3) they are parallel.
If they were negative reciprocals like one was 3 and the other -1/3. then they would of been perpendicular.