Retirement tax questions

Thank you Carl, do I need to input company A's 1099-R, Company B's or both?
Just want to make sure I'm doing it correctly 🙂