Education

My kid is in the second year of college in 2022. The total amount of education expenses (1099-T  + room and board)  was $25,000. The 1099-Q had $17,000 in Box 1. Can you please tell how we may claim the education credit for the $8,000 difference?