suppose you have that block hanging from the ceiling by a rope. As you can see, two forces act on the block, the tension force T and the weight W. let's assume that the tension is 10 Newton. So, using the second law of newton:
the system is static, there is no acceleration, therefore:
the weight is equal to the product of the mass and the gravitational constant: