Select the sentence which is correctly punctuated.
After Brendan, pulled the trick on Zach they both had a good laugh.
After Brendan pulled the trick on Zach they both had a good laugh.
After Brendan pulled the trick on Zach, they both had a good laugh.