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

I understand wanting more.

I understand how to do it.

Possible answers: (A). different meanings. (B). the same meaning.
(B).