I guess you missed some information in part a). Also, the first expression is an equation, while the second one is not. Hence, there is some typo here as well.
The first missing piece of information should be "B is the upper limit of the support of the distribution function, i.e., F(B)=1", which is the reason that you see (1-\beta)*w_2\bar in the second expression.
The second missing piece of information should be the condition of "(1-\beta )c=beta(B-w_2\bar)".