Do the resources from the shrine of knowledge in my second town go toward whatever I am researching at the moment from my first town?
yes it does