Here is Canvas object wihch demonstrate the problem.

The shear force contributed by the nails is needed to satisfy equilibrium in the longitudinal direction.