Common acceleration: $a_c=\dfrac{12}{9}$
Only $f_r$ is acting on 5kg block so: $f_r=5(\frac{12}{9})$
And $f_r$ is also the limiting friction.
Now a force $F$ is exerted on 5 kg block.
$a_c=\frac F9$ and only $f_r$ acts on 4 kg block. So $$f_r=4(\frac{F}{9})\\ 5(\frac{12}{9})=4(\frac{F}{9})\\ \implies F=15$$