Two angles of a triangle are 40 degrees and 62 degrees; what is the third angle's measure?