find the lengths of the pipes.