Suppose the average yearly salary of an individual whose final degree is a masters is $36 thousand less than twice that of an individual whose final degree is a bachelors. Combined, two people with each of these educational attainments earn $117 thousand. Find the average yearly of an individual with each of these final degrees.