Solve the following problems.