solve 2.17
solve 2.18