solved problems 29,40,42,43