solve exercise 49.04