pythagorean theorem
we assume that we simplif it so
the longest flagpole legnth is the diagonal of the box
we do 2 right triangle/pythagorean theorem things (attachment below)
a^2+b^2=c^2 where a and b are legs and c is hyptosute
bottom
2^2+2^2=c^2
4+4=c^2
8=c^2
sqrt boh sides
2√2=c
now that is bottom
height=12
so
12^2+(2√2)^2=c^2
144+8=c^2
152=c^2
2√38=c
aprox
12.3288
round
12
answer is 12 feet in whole feet
answer i 12 feet