Is my logic correct on what to report as taxable for the student with full scholarship?

My son received a full scholarship for undergrad studies, his 1098-T box1 = $2,127.44 and box5 = $11,765.

 

I have withdrawn from ESA/529 plan the amount of the scholarship equal to $11,765, for which he received a 1099-Q listing basis = $5,765 and earnings = $6,000.

 

I am confused as to what to report where, I wonder if he will have these two taxable entries.

1) [removed].44 = 9638 (scholarship - qualified tuition, going to line 8r of Schedule1)

2) 6,000 earnings from ESA/529 withdrawal (going to line 8z of Schedule1)

 

how can I report this correctly in tt desktop?

 

Thank you.