Solve problems 16,20,22 using Python.