He laughed and thanked them.
He thanked them after laughing.