As vascop says, the fact that the block on the table is heavier makes no immediate difference, since its weight is acting entirely into the table. If the table were perfectly smooth the only force acting in the system would be the weight of the dangling brick.
The way to approach this is as follows:
Step 1: draw free-body diagrams for the two blocks and the wheel. At this point it makes sense to be as general as possible, so call the large mass M and the other mass M, with a coefficient of friction mu, and acceleration to gravity g.
Step 2: Resolve forces in the horizontal and vertical directions for all objects.
Step 3: Use negligible friction/ no slippage to assume that the tension in the rope is equal everywhere.
Step 4: Input above results into Newton's second law, for both blocks, in the directions they can move.
Step 5: Inextensible string will imply that the accelerations of both blocks are the same. If you've done all the working above correctly this will turn your problem into a pair of simultaneous equations in the Tension of the rope, T, and the acceleration a.
Step 6: Eliminate T from these equations, so that you are left with an equations that gives acceleration in terms of the masses, friction coefficient, and gravity.
Step 7: Input the numbers for this problem into the equation, and then you will no what the constant acceleration of the brick is.
Step 8: Use the SUVAT equation s= ut + (1/2)at^2 and solve this for t, with u = initial velocity = zero.
Following the above steps should lead you to the answer.