a) Ta có: \(\left(-65\right)\cdot\left(87-17\right)-87\cdot\left(17-65\right)\)
\(=-65\cdot87+65\cdot17-87\cdot17+87\cdot65\)
\(=17\left(65-87\right)=17\cdot\left(-22\right)=-374\)
b) Ta có: \(\left(135-35\right)\cdot\left(-37\right)+37\cdot\left(-42-58\right)\)
\(=\left(-100\right)\cdot37+37\cdot\left(-100\right)\)
\(=37\left(-100-100\right)=37\cdot\left(-200\right)=-7400\)