At a critical point in a steel part of a machine, the stress components found were σxx = 100 MPa, σyy = −50 MPa and σxy = 30 MPa. Assuming the point is in state stress plane, and the material yield stress to be 160 MPa, determine whether the fails according to the criteria: (a) the maximum shear stress (Tresca). (b) the maximum deformation energy (von Mises).