Weighted/capped GPA

So for some schools like the UCs, they cap your UC gpa after 8 semesters of weighted classes. If you’ve taken way more, which ones do they choose to weight?? This has been bothering me for a while