Use Uniform distribution to generate random value for unknown variables (a,b,c,d,e,f,g,p), then repeat Monte Carlo simulation for manay times, This give the distribution for population of x, given n known. The sample statistics is x(30 data), Then use the mean statistics estimate the unkown parameter of the population.