This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] For a virtual image $v=3u$ (both on the same side), and the separation is $|v|-|u|=2|u|=20\Rightarrow|u|=10$ cm, $|v|=30$ cm. With $u=-10$, $v=-30$: $\frac1f=\frac1v-\frac1u=-\frac1{30}+\frac1{10}=\frac1{15}\Rightarrow f=15$ cm. Answer: 15.