One angle is 5 degrees less than three times the degree measure of another angle. Together the angles measures have a sum of 143. What is the measure of each angle.