I explained the solution for the third problem and fixed an incorrect answer