Treat the masses as one big mass and find acceleration. Then use the second law to find the Force exerted by the second block on the 1st block. Then calculate ratio:
(m+2m)a = F - mgμ-2mgμ solve for a of both masses in terms of F and m
ma = F - mgμ - FBlk2 on Blk1 substitute in a from above and solve for the Force of Block 2 on 1