solutions to the sample exam