Solutions for Problem21 and 22