He pushed them together to have the most surface area when he was done, so that tells us he put the two smallest sides together.
Essentially, he put them end to end to make a really long prism. The two sides pressed together are both 3x4 so
2(3x4) = 2(12) = 24