Two carpenters are trying to carry a board down a corridor and around a corner in a building. The corner is at a 90degree angle and the corridor is 9 feet wide. What is the length of the longest board that can be carried parallel to the floor through the corridor, to the nearest tenth of a foot?

I'm pretty sure this involves the law of cosines and sines but I have no idea how to even begin doing this one.