solve exercise 39.08