Finding resistance of a resistor connected to ground