The sum of the measures of the angles of any triangle is 180. In a particular triangle, one angle is 40 greater than the smallest angle, and the third angle is 10 less than three times the smallest angle. Find the measure of the three angles.