By seeing the 3 cases, I finally found a system of equations to solve (x the length, y the width and z the height) :
_2x + 2y + 4z = 1.3_
_4x + 2y + 2z = 1.7_
_2x + 4y + 2z = 1.4_
I solved the system by using the substitution method and I got then the following solutions :
_x = 0.3_
_y = 0.15_
_z = 0.1_