If he came in by himself he will go out by himself; if he had a wife when he came in, then his wife will go out with him.
If he does not provide her with these three things, then she will go out free, without paying money.