Select the sentence that is written correctly

a. The party became lively, when Sohn arrived 365
b. The party became lively when John arrived Une er all piate provided for you.