Step one: draw a box. Forget the rope. Just imagine a floating box. Step two: ask, “What forces pull on it?” Gravity pulls down. You pull up. Tension is the middleman.
Step three: use T = m × (g + a) if accelerating upward. If hanging still, T = m × g. That’s it. You’re now a tension whisperer.