The period is the smallest value $>0$ that you can add to the function parameter so that the function value will be unchanged.
Combining two periodic functions means they will combine to the same value when you can add a value to the parameter that is a multiple of both periods. In this case the smallest such value is $4\pi$, since this is the least common multiple of $\pi$ and $4\pi$.
If the periods of contributing functions were, say, $6$ and $10$, the combined function would be periodic on an interval of $\text{lcm}(6,10) = 30$. If the periods had no common integer multiple - say one period was $2$ and the other was $\pi$ - the combined function would not be periodic.
There may be shorter periods in some cases (which would have to divide this value) but I'm not sure if that is possible with simple addition of functions.