how to solve clock problems