When Jenny tried distributing her Halloween candies to 5 people, she had 3 candies left. When she distributed to 9 people, she had 6 candies left. In an attempt to resolve Jenny's sharing trouble, James gave her 2 candies so that she could evenly distribute her candies to 8 people. If Jenny had tried to distribute her candies to 10 people, before James' help, how many candies would she have left?