Answer: 4g
Step-by-step explanation:
Given
The time on earth is 4 s for 20 oscillations
i.e. time period for one oscillation is

for planet X it is 40 oscillations in 4 s i.e.
time period is

The time period of a pendulum is given by

where L=length of the pendulum
g=acceleration due to gravity
So, we can write the ratio of the time period of two pendulums as



i.e. 4 times the gravity of the earth