Suppose the average yearly salary of an individual whose final degree is a master's is $40 thousand less than twice that of an individual whose final degree is a bachelor's. Combined, two people with each of these educational attainments earn $113 thousand. Find the average yearly salary of an individual with each of these final degrees.