Given,
In a city, 25 of the population is smoker
So, P(smoker)=0.25
P(non-smoking)=0.75
And smoker has 27 times more chance of being diagnosed with lung cancer,
So, if P(non-smokerLung cancer)=p then P(smokerLung cancer)=27p,
Now, a person is selected at random and found to be diagnosed with lung cancer,
So, total probability of having a lung cancer will be
P(Lung cancer)=0.25×27p+0.75×p
So the probability of him being smoker (using bayes' theorem) will be P(Lung cancersmoker)=0.25×27p+0.75×p0.25×27p=3027=109
Now comparing with 10k=109,
Then the value of k will be 9.