respectively. Calculate the length of the path.