You can then test different shelf shapes and choose the best arrangement for the bookends that attach the shelf to the wall ...