If, in fact, you have absolutely no idea where to start, you need to talk to your teacher. For one thing, you titled this "how to find distance between lines". What lines? If you mean the lines supporting the block, that "distance" is 0 because they all meet at the block! What you need to do is find the three x, y, and z components of the forces. As the weight is not "swaying" from side to side, the x and y components must sum to 0. Since the weight itself is 500 Newtons, the sum of the z-components must be 500 Newtons. That gives you three equations to solve for the three tensions.
Again, if you really do not know how to do any of those things, you need to talk to your teacher who clearly believes you should.