solution 3 prob 5