If you have 18 pies and your family is 2 times bigger than your friends.

your friend has 30 people in their family

how many people are in your family and how many pies do you need if you wanna give 2 to each family member