One angle of a triangle is 40 degree and the other two angles are equal. Find the measure of the other two angles.