Confused! perpendicular lines?

Please explain/show how to solve this

L passes (0,0) and perpendicular y=x
answer y=-x

L passes (4,0) and perpendicular (-3,1)(2,6)
2 answers 2