Worked solution
Sketch the graph from the description
The graph is one straight line from the origin to 100 km after 2 hours, so the speed is constant.
Use gradient = speed
On a distance–time graph the gradient tells you how much distance is covered per unit of time — that is the speed.
State the answer with units
Distance is in km and time is in hours, so the speed comes out in km/h.