All surfaces shown in figure are assumed to be frictionless and the pulleys and the string are light. The acceleration of the block of mass is

You have:
Key idea: movable pulley changes both force and motion relation
Step 1: understand tension
Let tension in string = T
For the 4 kg block:
It is supported by two segments of the string
So upward force = 2T
Equation:
Step 2: relation of acceleration
Very important part
If the 2 kg block moves up the incline by x
the movable pulley (and 4 kg mass) moves down by x/2
So:
Now lets write equation for the 2 Kg block
now on multiply and adding both so that T gets cancelled
so now we know
so
Tagged Connected bodies, pulleys and constraint relations. Machine-assigned, so read it as a strong shortlist rather than a verdict.