It is written in my book that if

than

where are the basis of a vector space and are the basis of the correspondent dual vector space.

My question is why does the indexes and switch? In equation 1 is the index of but in 2 is the index of . Should't and be switched in 1?