How to solve a work problem?