solution to p27 with notes