The number of people and the days for which stock will last are in inverse proportion.
$
\begin{aligned}
& \therefore 6000 \times x =4000 \times 30 \\
& \therefore x=\frac{4000 \times 30}{6000}=20
\end{aligned}
$
$\therefore$ The stock of grain will last for 20 days for 6000 people.