If a string passes over a smooth pulley and two bodies A and B are suspended from its two terminals such that the string is tensioned , then the two tensions in the two terminals of the string are equal in magnitude .