If their offer is contingent on their home selling first and tbeir home does not sell, them as per that contingency, they can (if they choose; it is their choice) terminate the contract without penalty and get their deposit or earnest money back.