But first you need to make room in the formation inventory if you already have 12 heroes there. You do that by removing the equipment and runes from a hero and then clicking on the REST button to the right of the Hero's stars.