solutions for the final examination 3189155