Sam is picking strawerries. Each strawberry he puts in the basket makes he basket heavier. The independent variable is,

A) the type of basket


B) the weight of the basket


C) the number of strawberries put in the basket


D) the temperature outside