I am learning about Heckman selection model and confused with conditional expectation notation.
The outcome equation is:
If error terms have bivariate normal distribution, then:
Can someone explain how it arrived from second to third line? Why are explanatory variables with coefficients written outside the brackets and epsilons are now written inside the conditional expectation brackets?