I will explain the grammar of JLPT N2. The important usage is "A あげく B"