In a triangle, the second angle is twice the measure of the first, and the third angle is three times the measure of the second. Find the measure of the third angle.