solve prob31