Answer:
Sammy would have 16 friends.
Explanation:
Let total number of friends be x, each friend gets 2 balls, this can be denoted as 2x balls.
The final relation can be expressed as:
40 (total number) =2x+8 , here 8 is the remainder after distribution.
Now we can solve for x
40=2x+8
40−8=2x
32=2x
x=16