middle exam solution 3