Two weeks trip to Tokyo & Kyoto

Will be coming to Japan for two weeks via Narita Airport, mid October. Spending 5 days in Tokyo then 4 days in Kyoto and 5 more days in Tokyo. Any tips what is the best way to do it commuting wise? Thanks, Orna