weighted avg common stock help

Can someone please explain the difference in the two calculations for weighted avg of common stock? Some problems calculate weighted average individually at each issue date others are take the cumulative amount each time stock is issued. I don't understand which one should be used and how to determine if I should calculate individually or together. Help Please! Thank you!