Hint 1
You know that the "length of cable inside the pipe is 6 m for each cable."
Start with cable B and try to work out where it's going. From its starting point to the end of the exposed section of cable, it runs through 4 m of piping. It should be clear where the last 2 m of cable goes.
