"Carry That Weight" is a song by the Beatles, it  segues into which song, and the last song recorded collectively by all four Beatles, and is the final song of the medley that constitutes the majority of side two of the album?
Carry That Weight:  It is preceded by "Golden Slumbers", and segues into "The End". The End (Beatles song): "The End" is a song by the Beatles composed by Paul McCartney (credited to Lennon–McCartney) for the album "Abbey Road".
The End