Statement of Stockholder's Equity-Help needed

So I'm looking at an example of a statement of changes in stockholders' equity from the Ninja book. Preferred stock and Common stock are shown as subtractions in the retained earnings column. Why?? I know the dividends for each would decrease retained earnings, but does the issuance of them reduce it too? I am confused. I remember having a simulation on preparing the statement of changes in stockholders' equity section, which I did not study before I took my last FAR exam!! I didn't know what the heck it was and wasn't sure of the format. This time around, I am taking the blueprint seriously...