Task:
A massless frictionless pulley is held up by a single rope from the ceiling. Two 100 N weight hang from the sides of the pulley (balanced). Sketch a free-body diagram of the pulley, and determine the tension in the ropes.
Solution:

Due to Newton's second law:
ma=T−P (for the right side)−ma=T−P (for the left side)
Solve the system of equations:
ma−ma=T+T−P−P0=2T−2PT=P=100N
Answer:
T=100N