I'm also trying to figure this problem out. I think have it, but am unsure of my answer.
For the blocks to stay in contact as they slide down, F1≤F2
Block m1:
Fnetx1 = FNx-Ffx
Ff = μ1FN
FN = Fgcosθ = m1gcosθ
plugging into Fnet & Ff
Fnetx1 = m1gsinθ-μ1m1cosθ
Block m2:
Same equations as block m1...