Looking at the 5.0 kg block, the net force acting on it along the incline includes friction, gravity ( ), and the tension of the rope. Each of these can be calculated and thus, you can find the acceleration of the block ( ).

Now, use your kinematics equations to determine what it's velocity is by the time it reaches the top of the ramp (you're given that it's 4.0 m) and note that it will be 'launched' at a 30 degree angle. You should be able to determine how far it will land with all this in mind. Keep in mind that once the 5.0kg is released, it will not be accelerating (at least, that is what is presumed).