PREPSWIFT query

What if we take height = h and length = h/2? In video, it’s h=2h and l=h.
The answer will be different. How to know we have to use height=2h and length=h?

Should work - the answer shouldn’t change.