Nailing two box beams

An 8-in. square box beam is to be constructed using two 2x8 boards, two 2x4 boards, and nails. The nails are to be spaced at 6-in. intervals along the span of the beam.