Answer to variable resistor question