2x4 Shelving the best way to fit 2x4 at corner, screw, wood, shelf, end, no glue

2x4 Shelving the best way to fit 2x4 at corner, screw, wood, shelf, end, no glue