Step 1: Identify the given quantities.
Distance between object and screen is
\[
D=100\,\text{cm}
\]
Distance between the two positions of the convex lens is
\[
d=20\,\text{cm}
\]
This is a lens displacement method problem.
Step 2: Use the lens displacement formula.
For a convex lens forming real images at two positions,
\[
f=\frac{D^2-d^2}{4D}
\]
Step 3: Substitute the values.
\[
f=\frac{100^2-20^2}{4(100)}
\]
\[
f=\frac{10000-400}{400}
\]
\[
f=\frac{9600}{400}
\]
\[
f=24\,\text{cm}
\]
Step 4: Final conclusion.
Hence, the focal length of the lens is
\[
\boxed{24\,\text{cm}}
\]