A man earned wages of $39,400, received $2700 in interest from savings account, and contributed $3500 to a tax-deferred retirement plan. He was entitled to a personal exemption of $4050 and had deductions totaling $6970. Find his gross income, adjusted gross income, and taxable income.