What formula to use
Answer

Check the picture below.
now, since we know what "f" is, let us use the CNT triangle with the small COR one.
[tex]\bf \cfrac{36+f+30}{36}=\cfrac{48+32+g}{48}\implies \cfrac{36+24+30}{36}=\cfrac{48+32+g}{48} \\\\\\ \cfrac{90}{36}=\cfrac{80+g}{48}\implies \cfrac{5}{2}=\cfrac{80+g}{48}\implies 240=160+2g \\\\\\ 80=2g\implies \cfrac{80}{2}=g\implies 40=g[/tex]