In a triangle, the measure of the second angle is three times the measure of the first angle. The measure of the third angle is equal to the sum of the first and second angles. Find the measures of all three angles in the triangle. Let's think step by step and output the final answer within \boxed{}.
user