The important thing to remember when applying the laws of thermodynamics to machines such as ramps, levers, and wedges is that the mechanical advantage of using the machine does not change the amount of work that is being done.
Mechanical Advantage
Does the amount of work change when you use a machine?