Directory Traversal 2018 gold

Could someone help explain the problem? I don’t seem to understand the output for the sample case. Specifically, I don’t really get where they got the number 42 as the sum of the path lengths.

Could someone help explain this? Thanks in advance.

Problem link

What don’t you understand about it? The length of the total characters used to have references to all the files is exactly 42.