In ABC, the measure of angle A is 40 degrees greater than angle B. If the measure of angle B is 5 degrees less than one-half the measure of angle A, what are the degree measures of angles A,B and C?