Answer
See below.
Work Step by Step
By definition, the expected value is the sum of each outcome multiplied by its probability.
a) Hence here the expected value: $0.8\cdot0+0.2\cdot(-700000)=-140000$.
b) Thus the company should go to court because the expected loss is smaller than thf they would have to pay in case of settling out of court.