1. An apparatus comprising: one or more memories; one or more processors in communication with the one or more memories, the one or more processors being configured to control; an acquisition unit configured to acquire an image data group including a plurality of images; a generation unit configured to generate a plurality of layout candidates for one page, each of the layout candidates being generated by selecting one or more images from the plurality of images and by executing a process for arranging, in a template, the selected images; an evaluation unit configured to evaluate the generated layout candidates for the one page, for each of the generated layout candidates, based on an image-specific evaluation of each image arranged in each of the generated layout candidates and an in-page balance evaluation within each of the generated layout candidates, wherein the each of the generated layout candidates is layout information that the process for arranging, in the template, the selected images, has been executed; and a determination unit configured to determine a layout for the one page to be output from the plurality of layout candidates for the one page based on a result of evaluation by the evaluation unit.