Writing Equations of Parallel and Perpendicular Lines

Writing Equations of Parallel and Perpendicular Lines explain to me how to solve the problems in an easy way? Ex: through (2, 2), parallel to y= x+4