Resistor for connecting two 9-volt batteries to 12 V thermostat
You should get a 12 volt battery for this. There are many sizes of 12 volt batteries.
As Chris pointed out in his comment:

A resistor is not suitable for this. Even a linear voltage regulator would quickly result in dead batteries.