A few points which might help…
1. It’s worth noting that we don't say a force ‘makes’, or ‘has made’ work. We say a force ‘does’ or ‘has done’ work. The phrase ‘work done’ is quite common.
2. You are using ‘L’ to represent ‘work done’. This is unusual.
3. It’s very easy to make mistakes due to signs (+/-) so I hope the following will help.
4. Work done by a force is positive if the force and displacement are in the same direction (no more than 90º difference in directions). Energy is then being supplied to the system by the force.
5. But when friction does work due to sliding, the frictional force and displacement are in opposite directions (180º). This makes the work done by the frictional force negative. Friction is removing mechanical energy from the block and turning it to thermal energy. So expect the work done by the frictional force to be negative. If it’s not, it’s wrong!
6. It is often most convenient to express values as changes (Δx), where:
Δx = (final value of x) - (initial value of x)
A positive value of Δx means x has increased, a negative value means x has decreased.
7. An importnant point is that work done by weight is minus the change in potential energy. For example: when something falls, the work done by its weight is positive (force and displacement in the same direction); but gravitational potential energy decreases, Δ(GPE)<0.
Work done by weight = -(change in GPE) = -Δ(mgh) = -mgΔh
8. Applying conservation of energy to the block, if we add the work done by every force, the total must equal the change in kinetic energy. So in the current problem we could write:
(work done by applied force) + (work done by weight) + (work done by friction) = Δ(KE)
That's the form I'd use. But if you want to use gravitational potential energy, then it's:
(work done by applied force) - Δ(GPE) + (work done by friction) = Δ(KE)
9. It is essential to get the correct signs when putting values into the above equation.
10. The '400J' given in the question is (slightly misleadingly) referred to as 'total work'. In fact it is best described as the work done by the applied force.