The basic accounting equation states that:
Do not use minus sign!
Keep the signs of Liabilities as positive. In accounting, liabilities (and other things with credit normal balance) do not use a minus sign.
After adding annotation for the normal balance of each term, we have:
We can expand stockholders’ equity further:
We can then expand retained earnings further: