If your teacher has introduced velocity-time graphs and asked you to relate them to the motion of objects, using a graph of speed vs time to analyze this problem is worthwhile. Remember that slope on a velocity-time graph corresponds to acceleration and that area on a velocity-time corresponds to displacement. So we should try to depict this motion with a velocity graph and then calculate the area.
The speed starts at zero and steadily builds to 20 m/s. (20 m/s = 72km / hr) so lets start our graph at t = 0, v = 0 m/s and have a straight line with positive slope for 8 sec.
Then the speed is constant, so from t = 8 sec to t = 28 sec, draw a horizontal line connected to the speed at t = 8 sec.
Then the speed decreases to zero over 4 seconds, so finish the graph by drawing a downward sloping line from 20 m/s to 0 m/s from t = 28 sec to t = 32 sec. The whole graph should look like a trapezoid with base 32 sec, height 20 m/s and a top base that is 20 sec long. The area of this trapezoid represents the distance travelled. You can calculate this area as either using the formula average base times height or as a triangle plus a rectangle plus another triangle.
The first way gives:
(32 s + 20 s)/2 * 20 m/s
26 s * 20 m/s
520 m
The second way would have terms:
0.5(4 s)(20m/s) + (20 s)(20 m/s) + 0.5(8 s)(20 m/s)
40 m + 400 m + 80 m
520 m