Transfer credits?

Hey there, so I was thinking of taking summer classes this summer in a community college to save up couple of bucks. I am a CSU student. So, I was confused regarding the transfer of credits. The CC offers 5 units for a subject but my CSU offers 3 credits for that same subject. So, when I will go back to CSU and while transferring my credits, while the credits for the subject be considered a 3 or a 5?