problem 27 & 31