Option (D) is correct.
Explanation: The largest static friction between the two is μsmtopg=0.4×2×10=8 N. When they move together, both have the same acceleration a=F/6.
(i) Force on the lower slab. The only horizontal force on the upper block is friction from the slab, so its acceleration can be at most
amax=28=4 m s−2
Then Fmax=(2+4)×4=24 N.
(ii) Force on the upper block. Now the only horizontal force on the lower slab is friction from the block, so the slab's acceleration is limited:
amax=48=2 m s−2
Then Fmax=6×2=12 N.
The key step is to identify which body is being dragged along by friction alone: friction must supply that body's entire acceleration.
(A) is wrong: it assumes the answer does not depend on where the force is applied.
(B) is wrong: 8 N is the limiting friction, not the applied force; friction only has to accelerate one of the two bodies, while F accelerates both.
(C) is wrong: it swaps the two cases; the heavier body dragged by friction gives the smaller limit.