tom ate 1/4 of a pizza. he divided the leftover pizza into pices each equal to 1/12 of the original pizza. after he gave some friends 1 piece each, 1/6th of the original pizza remained. how many friends got pizza?