Simply find the area under the velocity curve. Over the first 3 second interval, the area is that of a trapezoid with bases 2 and 5, so that area/distance traveled is
. For the last 4 seconds, the area/distance is
.
Then the total distance traveled is
![\frac{21}2\,\mathrm m+20\,\mathrm m=\frac{61}2\,\mathrm m=30.5\,\mathrm m](https://img.qammunity.org/2020/formulas/mathematics/middle-school/8y9cgd20pk6jtiralqnsqe63n9myq6gfvv.png)