This question has options. Is the word "work" used in the same way in the following two sentences?

He could not work the math problem.

This unpleasant situation isn't going to work itself out.

Options: -- different meanings. -- the same meaning.
the same meaning