\[\boxed{\mathbf{240.}}\]
\[\textbf{а)}\ 340 + 520 = 860\]
\[480 - 140 = 340\]
\[230 + 610 = 840\]
\[470 - 320 = 150\]
\[160 + 170 = 330\]
\[980 - 660 = 320\]
\[\textbf{б)}\ 590 - 470 + 640 =\]
\[= 120 + 640 = 760\]
\[360 + (580 - 170) =\]
\[= 360 + 410 = 770\]
\[890 - (420 + 340) =\]
\[= 890 - 760 = 130\]