Mechanical advantage in inclined planes and pulley systems