\(240-40\left(97-x\right)=200\\ \Rightarrow40\left(97-x\right)=40\\ \Rightarrow97-x=1\\ \Rightarrow x=96\)
\(\Rightarrow40\left(97-x\right)=240-200=40\\ \Rightarrow97-x=40:40=1\\ \Rightarrow x=97-1=96\)
\(240-40\left(97-x\right)=200\\ \Rightarrow40\left(97-x\right)=240-200\\ \Rightarrow40\left(97-x\right)=40\\ \Rightarrow97-x=40:40\\ \Rightarrow97-x=1\\ \Rightarrow x=97-1\\ \Rightarrow x=96\)