If the slotted arm $A B$ rotates counterclockwise with a constant angular velocity of $\dot{\theta}=2 \mathrm{rad} / \mathrm{s}$, determine the magnitudes of the velocity and acceleration of peg $P$ at $\theta=30^{\circ} .$ The peg is constrained to move in the slots of the fixed bar $C D$ and rotating bar $A B$