Retirement tax questions

So, if I understand correctly, I can take the full amount if I took money from my 401k of  $18,000 from Fidelity and pension from my previous  employer (not state employee) under $35,000.  My total is not over $125,000 being single.  Thank you!