John has 15 candies and Tom has 31 candies. How many candies does Tom need to give to John so that each boy will have the same number of candies?