How does the sentence end?

Robert was teaching Randy to crochet a scarf so
Randy could make a gift for their daughter.