Edit: At least according to one source, the average student pays 19,000 per year, including fees and housing. And they receive 22,000 in financial aid. Ie, the average student gets a larger discount than what they actually end up paying. https://www.collegesimply.com/colleges/virginia/university-o...
Similarly, Michigan is 18,000 per year with 22,000 in "aid".
Also, both schools are top 100 schools in the US. So even at elite schools, the average student is paying a fraction of the "price".
They get the opportunity to take out more loans, the poorer their parents are. I got a small pell grant a few years, but most of my college was all loans from the student aid office.
"27% of students received Federal Student Loans averaging $4,835 and 10% of undergrads took out private student loans averaging $11,058."
Financial aid also includes grants, both school-issued and outside (public and private), and it includes both merit-based aid and need-based aid.
https://www.collegesimply.com/colleges/illinois/university-o...
Edit, you're right, this includes loans, but grants make up the majority of that figure. It's not entirely clear to me how each number is weighted:
"Grant and scholarship aid does not need to be paid back. 36% of students received Federal Student Loans averaging $4,863 and 9% of undergrads took out private student loans averaging $6,819."