One angle of a triangle measures 140°. The other two angles are in a ratio of 7:13. What are the measures of those two angles?