Hoping for help with at least the top one but potentially both. I have a hard time understanding if the subscripts go to the other elements or not.

Hoping for help with at least the top one but potentially both I have a hard time understanding if the subscripts go to the other elements or not class=