I'm not quite sure what the actual question is, so I'll try and explain it without really knowing... might make a few careless mistakes but this is the general gist
So if you have two masses, and one's over a ledge, this is what will happen.
Both masses must move with the same acceleration as the length of the string is conserved. Denote this acceleration as a.
Denote the mass hanging over the ledge as M. Denote the mass resting on a tabletop as m.
Resolve the forces on M:
Mg-T=Ma
However, the tension force is the only force acting on m, so T=ma
Mg-ma=Ma
Mg = a(M+m)
Thus a = Mg/(M+m)
Then to find the force, multiply m by a. Tension should be the same or something.
I may have misunderstood the question though... I haven't seen it or a diagram...
And yes, marks are allocated for working.