Graphing a line by first finding its slope and y-intercept