How can I make a group of boxes enter a particular total?