within Secotr Allocation

Can someone help explain to me why there are two differnt formula’s? Wj,b(Rj,p-Rj,b) but later in the notes it says Wjp(Rjpl,Rjbl) ? Also for market allocation effect similar differnt formula’s for what looks to be the same thing description? (Wj,p-Wj,b)-(Rj,p-Rj,b) vs (Wj,p-Wj,b)Rj,bl

see previous post by darkstar - called Attribution