Find the angle of a ramp that causes a block sliding up the ramp to have the minimum speed after sliding a certain distance