I need to find the total mechanical energy. I think the first one is correct but the second one is wrong

I Need To Find The Total Mechanical Energy I Think The First One Is Correct But The Second One Is Wrong class=