5. If the function $f(x)$ satisfies for all real numbers: $f(2+x)$ $=f(2-x), f(5-x)=f(5+x)$, then the period of the function $f(x)$ is ( ).
(A) 2
(B) 5
(C) 6
(D) 7
5. C

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