You only have one "variable" in
sed, which is called the "hold space". You can copy or append the current "pattern space" to the "hold space", or you can exchange the two, but inserting the contents of one in the middle of the other is difficult.
You would do much better with
awk or
perl or similar.