problem 39 & 41