If I’m right…
A rectangular prism's volume is widthXlengthXwidth. With the supplied volume of 24, you may identify two ways to multiply 24 using separate sets of numbers.
Layla's = 3, 2, 4
Oliver's = 6, 2, 2
I’m not 100% sure this is right but I hope it is!(: