a) \(516-\left[\left(54-2^2\cdot7\right):13+3^4\cdot5\right]\)
\(=516-\left[\left(54-28\right):13+81\cdot5\right]\)
\(=516-\left(26:13+405\right)\)
\(=516-407\)
\(=109\)
b) \(15+\left|14+\left(-18\right)\right|+\left(-9\right)\)
\(=15+4-9\)
\(=10\)