Retirement tax questions

You have to enter both.  The 401K probably went into a traditional IRA first then they converted it to a ROTH.  The 401K 1099R Code G won't be taxable but the other one will be.