How does the sentence end?

Joel needed William to get a contractor license for their company, so they helped
William to fill out the paperwork.