Retirement tax questions

Okay, just to be sure: in the section for income box 5a it has the correct amount we are claiming for the 1/3 we are paying on, box 5b is double that amount.  Is 5b only for the 5a amount or our whole income?  And if so- where did it get the amount from if I never put in any additional amounts?