solve exercise 35.11b