A chain of mass m and length L held vertical by fixing its upper end to a rigid support. The tension in the chain at a distance y from the rigid support is
A) mg
B) mg(y/L)
C) mg(L - y)/L
D) mg(L - y)