Community College or an UC School?

The transportation costs always upsets me because I live in San Francisco but go to school in Berkeley. There’s a deal at my school (as it is with UC Berkeley) where riding AC Transit is free (when I pay $36 a semester for the pass - I think it’s free for UCB students, like it comes with the tuition/perks of being a UCB student?). But I still pay for muni and BART to get to the free AC Transit, which seriously racks up fast. I’m afraid for the future, where the cost of living in Berkeley and Oakland (and i’m only talking about rent) is beginning to spike massively, almost to a point where it’s nearly impossible to live in Berkeley, be a student, and work enough hours while balancing school to earn enough money to afford the insane rent - or unless you have rich parents who can pay your rent while you go to school. It’s kind of troubling.