You don't need a force equation. You know that the block is raised 2m off the ground initially. So its gravitational energy is
mgh=6•9.81•2=117.72 J.
At the bottom of the ramp, it has no gravitational energy, but its kinetic energy is 0.5mv2=0.5•6•(5.40)2=87.48 J. So in sliding down the ramp, you lost 117.72-87.48=30.24 J to friction.