draw a free-body diagram...
bloack A... has a Tension (T) force pointing upward, frictional force and weight (mg) point downward.
the applied Force Fa to the left and the normal force exerted on the block by the vertical surface.
Block X has T upward and weight downward,
since its on the verge of slipping, the acceleration equals to zero.
Block x:
T - m2g = m(0)
so T = m2g.
to find the mass of X we have to find the tension force.. so now we take a look at block A
Block A :
T - m1g - Fs = m (0)
T = m1g + Fs
substitute this in for T in the block X equation.
So m1g + Fs = m2g
m1g + usFn = m2g
the Fn equals to the applied force
so (6)(9.8) +( 0.4)(50)/ g = m2
= 8.04 kg round off to 8 !