As per given figure, a weightless pulley is attached on a double inclined frictionless surface. The tension in the string (massless) will be (if )

Lets write down equation for both
For 4 Kg
For 1 Kg
Now add 2 equations
Now substitute a in any equation
Tagged Connected bodies, pulleys and constraint relations. Machine-assigned, so read it as a strong shortlist rather than a verdict.