solutions to Practice #7-Max and min and applications.pdf