Golding draws the adventure theme of young boys on a lonely island from R. L. Stevenson's Treasure Island. However, he changed Stevenson's exalted tales of the adventures into the tales of how savagery can take over innocence, cause loss of civilization, and depict gruesome reality.
Fitzgerald alludes to T. S. Eliot's poem The Waste Land, which was published two years before the novel. Like Eliot's poem, The Great Gatsby presents a barren land, the valley of ashes, where nothing grows. In both the literary works, the land is called spiritually dead. In Fitzgerald's land of ashes, there is only weather-beaten advertisement, and in Eliot's waste land, there is a heap of broken images. Fitzgerald's novel also refers to the Greek myth of King Midas.
https://penlighten.com/understanding-intertextuality-with-examples