The correct option is C , it
The two parts, 'All the trapped miners began to lose hope' and 'it had been twenty-four hours since the tunnel had collapsed' are independent clauses. So, they should be separated by a full stop. Hence, ', it' should be replaced by '. It' The correct answer is C.