Lets assume I understand your question. Turn the power supply off.
Take the (we'll assume a 15A circuit in a jurisdiction that allows romex (NM-B)) hot and the neutral and the ground (14/2) and run them to the switch box in room #1. Run 14/2 up to the fan. Run 14/2 to the switch box in room #2. Run 14/2 up to the fan in room # 2.
Now for the taps. In the switch box in room #1 take the black wire from the power feed and the black wire that goes to room #2 and tie them together with a "pigtail". In other words, take an 8" piece of black wire and add it to the two blacks with a wirenut, making sure the connection is tight. It is best to pretwist the wires together and twist the wire nut on tight so no bare copper is showing. The pigtail will go on one of the screws of your switch. The black going up to the fan goes to the other screw on the switch. Tie the three whites together with a wire nut. Tie the three grounds together with a wire nut and another pigtail. This will go to the grounding screw on your switch. First box is done. Congratulate yourself.
The second box is easier. Put the black going to the fan on one screw of the switch. Put the other black coming from the first box on the other screw. Tie the two neutrals together. Tie the two grounds together with a pigtail and put it on the grounding screw of the switch. Second box is done. Congratulate yourself. Wire the fans, turn power back on. I always exclaim "It's a miracle" when it works.