Retirement tax questions

Please see my comment, I found that I reported the gain in 2017 on form 5329.