Write the next sentence.

Natalie stayed away from Samantha when she was upset, as
Natalie avoided problems when she could.