Hang on, doesnt that formula only work if Centre of Oscillation is x=0?
Because thats where it is derived from.
It doesnt look like you can assume that x=0 is equilibrium either considering its careful wording (3cm from equilibrium), it would be pretty stupid if they didnt give you the equilibrium as zero, otherwise you would have to assume it is.
I did it the extremely hard way and was only able to get the period which by the way is pi. (I would latex it up, but it took me one page of working, so... yeah)
So yeah, Im not sure it is right to use that formula, because you cant just assume x=0 is equilibrium