Drop a perpendicular onto the longest side, and calculate its length. Then consider similar triangles.