Solve problems 1.2.26, 1.2.31.