Calculate the length of BB1 BB_1 BB1 in the box shown in the diagram.
aaa181818AAABBBCCCDDDAAA111BBB111CCC111DDD111
324−a2 \sqrt{324-a^2} 324−a2