you can put in skill points until lvl 10 in your example - it's the level cap the teacher can teach you.-
Example => I get the skill 2-hand slashing up to level 5: I can only learn this skill via skill points up to this level - then I meet another teacher, who teaches me this up to lvl 10 => now I can put more skill points into it.