Nailing two box beams

Bending moments act on a segment of the beam,