Reading 44- Currency- Regarding Weights of stocks....

In problem # 5, the stock weights were computed by Beg stock values / Beg total mkt values But in problem number 5, the stock weights were computed with ending stock values/ ending total mkt values. Is there no right or wrong way to compute weights???

PLEASE IGNORE- BEG WEIGHTS WERE USED IN BOTH