To solve this problem we will apply the concepts related to the conservation of energy. It is necessary to bear in mind that friction always acts opposite to the movement of the object and will therefore be negative to our reference system. This also leads us to intuit that the work done by this force is also negative.
The final energy is equivalent to the kinetic energy of the body while the potential energy will be the initial energy (stored at a certain height), therefore