The second angle of a triangle is double the first angle. The third angle is 40 less than the first angle. Find the three angles.