Finding resistance of a resistor connected to ground

I can't figure out how to get the resistor's resistance without connecting it directly between 5v and the analog input

I can't figure out how to get the resistor's resistance by connecting it directly between 5v and the analog input.

The configuration you have with one end to ground is a potential divider.

Take the reading and apply the maths.