3. If $a+b=4, a^{3}+b^{3}=28$, then the value of $a^{2}+b^{2}$ is ( ).
(A) 8
(B) 10
(C) 12
(D) 14
3. B

Translate the text above into English, please retain the original text's line breaks and format, and output the translation result directly.