I always have difficulty deciding whether it should be 'leur' or 'leurs' in these circumstances. I opted for 'leurs' this time and it was marked right - both ar accepted here! But thinking about the logic, it seems to me that it should have been 'leur': There are lots of friends, but each of them just has one family - so 'leur'.
Or am I barking entirely up the wrong tree here ?