A pendulum is mounted on a cart rolling without friction down on an inclined surface of inclination with the horizontal

A pendulum is mounted on a cart rolling without friction down on an inclined surface of inclination with the horizontal. The period of the pendulum on an immobile cart is T. What will be the period of the pendulum on the cart when the cart rolls down the surface ?

When the cart is at rest, the effective acceleration due to gravity is g and when the cart is rolling down the inclined surface, the effective acceleration due to gravity involved perpendicular to plane is g . Time period of pendulum when cart is immobile