solutions to five and six