they were hired by Kubrick to write the whole screenplay, and all of the ideas for the iconic sequences and the iconic dialogue stems directly from them. Also johnson was a writer that kubrick admired and he hated the screenplay that King wrote for it and wanted the film to be a massive departure. It’s amazing how all the iconic stuff about the film comes entirely from her mind when they were just a b list author and no one ever talks about it.