The length of a spring varies directly with the mass of an object that is attached to it. When a 30 gram object is attached the spring stretches 9 centimeters. Which equation relates the mass of and object, m, and the length of a spring s.

A s= 3/10m

B s= 10/3m

C m= 3/10s

D m=10/3s