He had worked out the problem when Jim called him