Complex sentence: Styles was subsequently (kayfabe) fired by Bryan, but at the end of the show an injured McMahon challenged Styles to a match at WrestleMania, which Styles accepted.
Split into simpler sentences: Styles was subsequently (kayfabe) fired by Bryan. However, at the end of the show, an injured Shane challenged Styles to a match at WrestleMania, which Styles accepted.