Both upper block and lower block will have same same acceleration a=2m/s2
R1=mg
F=μR1−T=o
T−μR1=0
and F−μmg=T
T=μmg
Putting T=μmg
F=μmg+umg=2μmg
b) 2F=T−μmg−ma=0
T−ma−μmg=0[sinceR=μg]
T=ma+μmg
Put the value of T ,
2F−Ma−μmg−μmg−ma=0
putting the value of F:
F=2μmg2(2μmg)−2μmg=a(M+m)
4μmg−2μmg=a(M+m)
a=2μmg/M+m
Both the blocks will move this same acceleration ′a′ in opposite direction.