Answer:
 see the attached graph
Step-by-step explanation:
The axes and units for the graph are given in the problem statement. The range of the graph is also given, but figuring the domain requires a little arithmetic. We assume the walking pace is constant, so the graph will be piecewise linear.
The vertical (y) axis is labeled with what the graph is modeling, "distance from home (in meters)." The horizontal (x) axis is labeled with what the model is in terms of "time (in minutes)."
The range of the graph is 0 to 400 meters, the range of distances Sam may be from home.
The domain of the graph is 0 to 9 minutes. The time it takes to complete the trip is 4 minutes to the shop, 2 minutes at the shop, and 3 minutes coming home, for a total of 4+2+3 = 9 minutes.
We are given that points on the graph will be (0, 0), (4, 400), (6, 400), and (9, 0). That is Sam is ...
Since we assume walking is at a steady pace, we connect these dots with straight lines. The resulting graph is attached.