[EDIT2]
Following the help I got in the comments + answers I found
$$\begin{align} a &\leq \sqrt{H^2-b^2} \\[4pt] a &\leq \sqrt{h^2-b^2} \end{align}$$
as the answer with this process https://i.stack.imgur.com/Z6mwd.jpg
I need to develop a method to know if the box can pass or not
]
I need to find a method to know if I can turn my box to keep moving in the hallways, when I give $a$, $b$, $h$ and $H$ (in meter) can show if it will pass or not.
For example $a=3, b=1.5, h=2.1, H=2.1$
I'm really stuck with that and I though that someone here could help me (if you want to do it with voice call or anything I can give you my Discord in private)
I tried to draw a isosceles triangle with the side a of my box to calculate his height of the triangle but I'm stuck with the $h$ and $H$
