Sam has 10 candies. He gives away 2 candies to his friend. What fraction of the candies did Sam give away?