Solve problem 76 and 77, still trying 78