new routine that get the common films id of a given number of actors