solve exercise 35.10