How to find lines which are parallel to one another

I was trying to understand this solution as well Find which lines are parallel