solve exercises 18.36 - 18.37