problem 27 partial