529 and shcolarship daughter a dependent.--how do i do this?

Enough to make me insane!

My daughter (dependent) got 1098 t  32 k in scholarship   17 k used for tuition etc.

She had a 529 plan -1098Q with 30K gross distribution 16k of that earnings (last year we wanted to use it up)

She has Room and board expenses of 18K  (which I can not figure how to enter against the 529 amount--it should allow it (unpenalized) as she had offset scholarship) 

How do I enter things in the right order---my tax return, her tax return.

I don't think I qualify for any credits so....and yes there is some tax.

Thank you all who help!