\(g,101+\left(-60\right)+29+\left(-40\right)=41+29+\left(-40\right)=70+\left(-40\right)=30\)
\(h,167+\left(-252\right)+52+\left(-67\right)=\left(-85\right)+52+\left(-67\right)=\left(-33\right)+\left(-67\right)=-100\)
\(i,38-138+250-350=\left(-100\right)+250-350=150-350=-200\)
\(k,118+107-\left(118-93\right)-50=225-25-50=100-50=50\)
\(m,40+\left(139-172+99\right)-\left(139+199-172\right)=40+\left[\left(-33\right)+99\right]-\left(338-172\right)\)
\(=40+66-166=106-166=-60\)