solved problems 30.31