solutions for homework thirty one 3540786