If it is 10 days total, and especially if you have to travel far/overnight, I would suggest:
Day 1--travel to Madrid (if from the US, it would likely be overnight)
Day 2--travel to Sarria
Days 3,4,5,6,7,8--walk from Sarria to Santiago (if you are really strong walkers, you may be able to do it...