Question

$$B=\sqrt{g+4\sqrt{g}}$$

Solve for B

$B=\sqrt[4]{g}\sqrt{\sqrt{g}+4}$
$g\geq 0$

Solve for g

$g=B^{2}-4\sqrt{B^{2}+4}+8$
$B\geq 0$