How to find the work lost
calculate the normal force
multiply by friction coefficient
multiply that by the distance
Calculate the normal force with an angle
mgcos(theta)
Work done by gravitational force with an angle
W =mgd*cos(theta)
Work done by gravitational force
W = mgh