Confused: Need to use to Potentiometers

also the schematic is basic:

Im running two h-bridges attached to two steppers.

two 10k potentiometers connected to ground, 5v and each to its corresponding analog input.

I am still learning, Ive been looking around trying to figure out what to do, Ive seen people utilizing 10k resistors to create isolated voltage circuits? Im not sure