Based on the context these verses were given, the analysis is that King Jehoiakim died during the attack by Nebuchadnezzar and his body was thrown over the gates of Jerusalem. Nebuchadnezzar then took the body to Babylon.
His death is a bit mysterious because it is not know whether he was taken to Babylon, or died in Jerusalem.
Based on the verses given above however, we can infer that he died during a siege (2 Kings 24:6) by Nebuchadnezzar and was then thrown over Jerusalem's gates like a donkey (Jeremiah 22:18-19). His corpse was then dragged off to Babylon by Nebuchadnezzar.
Find out more on Babylonian Captivity at https://brainly.com/question/507674.