The ratio of the measures of the three angles in a triangle is 12:3:5. Solve for x. Then find the measure of the SMALLEST angle.