3. Given $(a+b)^{2}=8,(a-b)^{2}=12$. Then the value of $a^{2}+$ $b^{2}$ is ( ).
(A) 10
(B) 8
(C) 20
(D) 4
3.



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