Problem 31 and 32