Solution of the problems