The question is in the title. Also note that $f(x)$ is non-constant function.
This is not same as other question asked from similar title.
I understand that if I put $x+3$ in place of $x$ in $f(2x)$, I get the same function. So the period must be $3$. And that the period of $f(x)$ must be $6$.
But 'The book' says period of $f(2x)$ is $6$ and of $f(x)$ is $12$. I cannot understand this.
You are correct, in finding the fundamental period of the function.
Therefore, if you have found the fundamental period of $f(x)$ is $6$, there is no harm in saying that it has a period of $12$, too.
(Although I understand that when nothing is specified, then we assume that the question is about fundamental period, but if it's a MCQ question and you have no other option that is correct, than this must be the most correct option.)