How does the sentence end?

Samuel taught Matthew how to calm his overactive mind because
Samuel had successfully done so in the past.