Here is Canvas object wihch demonstrate the problem.

From the stress distributions, resultant forces acting on portions of the cross section can be determined. Since we are focused on the boards connected by nails, we will consider the resultant forces acting on the 2x8 in Config 1 and the 2x4 in Config 2.

We will focus on the top boards for this example, but the same principles apply to the bottom boards.