Hi Giggles,
As Sam needs to buy a piece of wallpaper (in rectangular shape) of a given area, and he knows the width of the wallpaper, he should use the area formula to work out the length.
Area of a rectangle, A = Length * Width
substitute 900 for A, and 30 for width, and you can solve for length
Please let me know if you have further questions.