solved problem22