I don’t know where you get your estimate of $35,000 for in-state tuition. Last I knew tuition at UC Berkeley was about $13 - 14,000 a year.
A kid working hard in high school could take AP courses and graduate in 3 years. Alternatively, they could go to a community college for the first year and a half at a much lower cost and if they do well transfer to the university. With financial aid the cost would be much lower.