The connective here is "in the same way".
This connective can be rephrased in the following ways, and it would keep its meaning then:
Similarly,
Similar to this,
Not unlike this
etc.
We see here that the connective shows a comparison (this is the correct answer) - the two things are similar!
Answer:
Tom
Explanation: Subject answers to a question Who? So in this case Tom is the one that did something, aka offered you a piece of cake.
I believe the word is Margins
I think the words underlined once are the subjects, and the words underlined twice are the predicates.