In shown figure , assume pulley is massless and frictionless. Calculate the acceleration of the blocks if blocks are released from rest .