In these questions, it is ESSENTIAL to know which direction acceleration is going. Tension vector will follow where acceleration is. If you state your conventions wrong, your answer will be wrong

Question With Friction

When friction is added, there is one key thing to understand: Friction Opposes Motion. So if acceleration is going right, friction is going left. FRICTION DOES NOT ALWAYS OPPOSE