A piece of pipe is being carried down a hallway - MATES

Warmup:
A piece of pipe is being carried down a hallway that is 10 feet wide. At the end of the hallway the there is a right­angled turn and the hallway narrows down to 8 feet wide. What is the longest pipe that can be carried (always keeping it horizontal) around the turn in the hallway?
1
Two poles, one 6 meters tall and one 15 meters tall, are 20 meters apart. A length of wire is attached to the top of each pole and it is also staked to the ground somewhere between the two poles. Where should the wire be staked so that the minimum amount of wire is used?
2
3
4
5
6