add how to solve the problem