The correct answer is B. Mass and position.
Potential energy, specifically gravitational potential energy, is determined by the mass of the object, the height of the object above a reference point (position), and the acceleration due to gravity. The formula for gravitational potential energy (PE) is:
\[ PE = mgh \]
where \( m \) is mass, \( g \) is the acceleration due to gravity, and \( h \) is the height (position) above a reference point.