Nail spacing for U-beam

A simply supported beam carries the loads shown.