Complex sentence: David lost his confidence and is about to leave the academy to live a lonely and sad life, however, the principal of the academy made an unexpected proposal to him.
Split into simpler sentences: David lost his confidence and is about to leave the academy to live a lonely and sad life. However for Dean, the principal of the academy saw him and made an unexpected proposal to him.