Opportunity cost of choosing the best alternative is the value of the next best alternative forgone. Here the priority order is school, hospital, factory, residential complex. The best alternative is the school, so its opportunity cost equals the next best alternative forgone, which is the hospital.