There is a diagram below taken from a video. The video says that because the cord is assumed to be massless and frictionless the 2 tension forces are equal in magnitude. I don't understand why they are the same.
I also don't understand the implication of the cord being massless. Does it have to be massless so you can ignore its weight?