how to solve integers