We have the following boxes:
We know that the volume of both boxes is the same, then we have the following expression:

then, in this case we have the following:

therefore, the box with the smaller base is 4 times taller than the box with the bigger base