Technically what the mark scheme has done there will give you the ratio of time spent charging the capacitor to the time spent collecting the solar power, multiplied by the solar energy collected.
In my opinion it's a very lazy solution to have in the mark scheme.
If you do the algebra you can see that it's true though:
The output power of the solar cells is equal to the energy they produce, per unit time. Normally that unit time is 1 second, but it makes it easier here to just leave it in terms of energy/time.
So P1 = E1/t1
We're told that the input power to the capacitor, is 5% of the solar cells output power.
Let's call the capacitor input power P2
So P1 = 20*P2
The capacitor input power is then equal to the energy (work done) by charging the capacitor (E2), divided by the time taken to charge it (t2).
so P2 = E2/t2
combine the equations: E1/t1 = 20*(E2/t2)
therefore t2/t1 = (230*20)/10,000
Hope this helps