Two blocks of masses m and 2m are placed on triangular wedge by means of a massless inextensible string over a frictionless fixed pulley. Surface of contact between the masses and wedge is frictionless and wedge makes 45∘ with horizontal on both sides as shown in figure. The tensions in the string (T) is