Solve the following problems