A certain triangle, one angle measures ten degrees more than the second angle and ten degrees less than the third angle. What is the measure of the smallest angle?