9-lb collar can slide on a frictionless horizontal rod and is attached to a spring of constant 2.5 lb/in. It is acted upon by a periodic force of magnitude P = Pm sin vft, where Pm = 3 lb. Determine the amplitude of the motion of the collar if
(a) ωf = 5 rad/s,
(b) ωf = 10 rad/s.