I have a question in my textbook to which I do not understand the solution. Here's the solution:

(green) Why is i smaller than j . Since Cov(X,Y)=Cov(Y,X) by definition of covariance ? Is it supposed to be for convenience, the index?
(yellow, under Y) Is this supposed to be a typo? I don't understand where it came from
(whole expression underlined in red) How did they derive this? Also why is X not specified with indices? Since $X_i$ and $X_j$ are not the same for i not equal to j?
