2/3 of a pizza was left over. A group of friends divided the leftover pizza into pieces each equal to 1/18 of the original pizza. After each friend took one piece, 1/6 of the leftover pizza remained. How many friends were in the group?