I have the super collection with composition notes.
Masuda was credited for remixes of tracks he composed in previous gens; he did NOT arrange or compose any new tracks in Sun and Moon outside of the weakest two tracks in the game: the wild and trainer battle themes. OP is an idiot.
Most of the battle themes are Go Ichinose, most of the overall music period is Minako Adachi, and Hitomi Sato did some of her usual weird stuff for dungeon themes. Some other dudes get extra credits for arrangement on event/cutscene themes (bit not composition).
Simplified breakdown for who actually came up with the melodies/leitmotifs:
Ichinose: Gladion, Kahuna, UB, Konikoni City, Champion
Masuda: wild battle, trainer battle
Sato: Ten Carat Hill, Poni Canyon
Adachi: literally everything else (Alola region theme, Melemele island theme, towns, routes, Lillie, Hau, etc)
You're welcome