Complex sentence: Seeking revenge against Oliver, Malcolm joins H.I.V.E. and forms an alliance with Damien Darhk, later assisting him in retrieving his mystical idol and escaping prison, in exchange for Darhk sparing Malcolm and Thea from H.I.V.E. 's "Project Genesis".
Split into simpler sentences: Seeking revenge against Oliver, Malcolm joins H.I.V.E. and forms an alliance with Damien Darhk. He later assists Darhk in retrieving his mystical idol and escaping prison, in exchange for Darhk sparing Malcolm and Thea from H.I.V.E. 's "Project Genesis".