You can see that for every one grid square to the right, the graph moves two grid squares up. Therefore the slope is 2.