How do I solve these physics problems?

Even with the solution formulas, I can't figure out how these two problems work. I would greatly appreciate some help. For task 4 (first picture): You have to work with potential energy, kinetic energy and static friction, if I understood correctly. I've noticed that I generally have trouble with tasks that involve frictional forces. Thank…