MN^2=30^2+25^2-2(30)(25)cos77
This looks like a problem involving the Law of Cosines .....
MN = sqrt [ 30^2+25^2-2(30)(25)cos(77) ] = about 34.46