AEM said:
For a simple pendulum, the period is given by 2 \pi \sqrt{ \frac{L}{g} } where L is the length of the pendulum. The period and the frequency are related by T = 1/f .
The purpose of this complicated arrangement is essentially to give the pendulum bob an initial velocity when it starts its oscillation. You will have to calculate this initial velocity in order to calculate Q. The way to do that will be to use the equation for the position of the pendulum bob and the equation for its velocity at the start of the oscillation (t = 0).
That should get you started.
I just started to solve your problem, but I find that there is some information missing. As I read the problem statement and look at the diagram you included, here's what I think is happening: The masses A, and B, are accelerating to the right while C is accelerating downwards. This means that when block A is stopped, the mass B will have a velocity in the X direction. This velocity should be taken into account when you try to solve the equations for oscillatory motion. Therefore, you will need to calculate the motion of the system as a whole before you worry about the pendulum. You will need to know either how long the system accelerated, OR for how far it moved while it was accelerated. Then you can calculate the velocity of B in the X direction.
Once you have the velocity of B horizontally, you will need to convert it into an initial angular velocity, call it \theta_0
The frequency of oscillation is easy to calculate, as I mentioned above. However, you will have to use two equations simultaneously to find the amplitude and the phase angle (your Q).
These equations are
\theta(t) = A cos(\omega t + \phi)
and
\frac{d \theta}{dt} = - \omega A sin(\omega t + \phi)
In your work, you have chosen to use x(t) = A sin( \omega t + Q). I think it would be better to work with angles than linear variables. Also, one can use either sine or cosine for the function representing the motion, but you should be aware that you will get different values for the angle \phi ( your Q ). This angle reflects both which function you choose to express your answer in and how the motion begins. For example, if you start a pendulum from rest by pulling it back, holding it for an instant and then letting go, AND use the cosine expression above, the angle \phi will be zero.
You solve the two equations I wrote above by putting in the values that you have for the initial value of theta and initial angular velocity, and t = 0. It is also better for you to work with radian measure, rather than expressing your angles in degrees.
If you can tell me how long the acceleration lasted, or for how far block A moved, I'll solve the problem and see if there are any other hints I can give you.