Let me direct you to the bulbapedia pages on EVs and IVs. Here is a nifty IV breeding guide I found one day as well!
And the max amount of EVs you can put in one stat is 255, it's just usually simplified to 252 because that is the closest number divisible by 4. :^)