Hudson bought several cans of tennis balls. Each contained both green and yellow tennis balls. He purchased 10 green tennis balls and 5 yellow tennis balls in all. If each can has 2 green tennis balls in it, how many yellow tennis balls are in each can?