Four angles are put together, forming a straight angle. Two of the angles are the same size. The other two angles are also the same size but different from the other two. If one of the four angles measures 40 degrees, what are the measures of the other three angles? Explain.