A $5 \times 4$ lattice points are all connected to represent possible paths. Each path is exactly $1$ meter long. Determine the shortest distance (in meters) a person needs to travel so that the person walks through each path at least once and returns to the starting position.
So quite clearly the minimum the distance has to be is $31$ meters (the sum of all the edges' lengths). And by trying out some paths I was able to figure out $38$ meters is the min. possible distance travelled, but I was wondering if there was a more 'mathematical' way because my way took a lot of time.

If all vertices had even degree a Eulerian circuit through the graph would exist. The question therefore is: How can we double a minimal number of edges such that all vertices obtain even degree?
Since there are $10$ vertices of odd degree we need at least $5$ additional edges. You have found a solution with $7$ additional edges; therefore the solution is one of $5$, $6$, or $7$.
I could not do better than $7$ myself.