Measure the mass of the trolley, place it at the top of the ramp and set up light gates in two positions along the ramp. Attach a string to the trolley, and pass it over a pulley at the end of the bench. Attach a fixed mass to the end of the string and release it so the trolley accelerates, repeat with varying masses attached to the trolley.