Answer:
 7 friends got pizza
Explanation:
Tom ate 
 of a pizza. 
So, Reaming part = 

 He divided the leftover pizza into pieces each equal to 1/12 of the original pizza.
Let x be the no. of grinds he gave 1/12 part pieces 
So, Part of pizza given to x friends = 

So, Remaining pizza = 

We are given that 1/6 of the original pizza remained.
So, 


Hence 7 friends got pizza