20-21 Width of the second corridor for a pole to pass horizontally

Problem 20
A pole 24 feet long is carried horizontally along a corridor 8 feet wide and into a second corridor at right angles to the first. How wide must the second corridor be?
 

Solution 20

 
 

Problem 21
Solve Problem 20 if the pole is of length $L$ and the first corridor is of width $C$.
 

Solution 21