Retirement tax questions

You don't enter the 5498.   That is just for your info.  Just enter the 1099R.   After you enter the 1099R it will ask what you did with it.   Say you rolled it over and enter the amount you put back within 60 days.