solutions for third problem set 24263