A bullet with mass m is fired into a block of a mass M intially at rest at the edge of a frictionless table of a given height. the bullet remains in the block, and after the impact the block lands a distance D from the bottom of the table. Determine the initial speed of the bullet?