steps to selling and buying at the same time