There are two forces acting on the plumb bob: the force of gravity (weight) and the tension of the string. According to Newton's Second Law of Motion, the sum of these two forces must be equal to the mass of the plumb bob times its acceleration:
Draw a diagram to identify the components of each force:
Observe that the vertical component of the tension is equal to T*cos(θ), and it must balance the weight of the mass. On the other hand, the horizontal component of the tension is T*sin(θ) and it is responsible for the acceleration of the mass. Then:
Since W=mg, then:
On the other hand:
Therefore, the acceleration of the car is given by the expression is: