In the given investigation, the independent variable is the one that is being changed or controlled to test its effects on the dependent variable.
In this case, the student is changing the mass of the marbles while keeping the height of the ramp constant to see how it affects the distance traveled. Therefore, the independent variable is:
B) marble mass