Here is the graph showing Noah's run.
The time in seconds since he started running is a function of the distance he has run. The point (18,6) on the graph tells us that the time it takes him to run 18 meters is 6 seconds. The input is 18 and the output is 6.
The graph of a function is all the coordinate pairs, (input, output), plotted in the coordinate plane. By convention, we always put the input first, which means that the inputs are represented on the horizontal axis, and the outputs are represented on the vertical axis.