A 100N block lies on a frictional surface. A force of 50N was applied horizontally where the block had moved 5 m from the positive direction. Find the work done by the applied force and the work done by the weight of the block.

I assume the surface is horizontal.

The weight of the block is vertical down. Since the motion is horizontal there is no weight force in the direction of motion. Therefore the weight of the block does no work.
The applied force of 50 N acts for 5 meters in the direction of the force. Therefore it does 50 * 5 = 250 Joules of work
if there was no acceleration here the friction force wastes that 250 Joules and the friction coeficient is 50/100 = 0.5