solve problem#21