Answer:
Step-by-step explanation:
4.
2ab cos C=a²+b²-c²
2×31×14 cos C=31²+14²-40²
868 cos C=961+196-1600=-443
cos C=-443/868
C=cos^{-1}(-443/868)≈120.688≈120.69°
5.
by sine formula
m∠B=180-(62+55)=180-117=63°

Here is the work along with the answer to the problem.