Consider the situation shown in figure, find the tension in string AB consider pulley and string as frictionless and massless: