Problem 269: (2016 AIME I, 4)
A right prism with height $h$ has bases that are regular hexagons with sides of length $12$. A vertex $A$ of the prism and its three adjacent vertices are the vertices of a triangular pyramid. The dihedral angle (the angle between the two planes) formed by the face of the pyramid that lies in a base of the prism and the face of the pyramid that does not contain $A$ measures $60^\circ$. Find $h^2$.
- $A$'s base neighbors $B$, $F$ form $\triangle ABF$ with $\angle A=120^\circ$; the distance from $A$ to $BF$ is $12\cos60^\circ=6$. The third neighbor $A'$ lies $h$ above $A$.
- The dihedral angle along $BF$ has $\tan60^\circ=\frac h6$, so $h=6\sqrt3$.
- $h^2=108$. The answer is $\boxed{108}$.
A right prism with height $h$ has bases that are squares with sides of length $30$. A vertex $A$ of the prism and its three adjacent vertices are the vertices of a triangular pyramid. The dihedral angle (the angle between the two planes) formed by the face of the pyramid that lies in a base of the prism and the face of the pyramid that does not contain $A$ measures $45^\circ$. Find $h^2$.