Motion of connected system – A numerical problem

What is the acceleration of the body m2 in the diagram below?

(The question was posted by Shuvam Shukla. Students and other visitors can post solution as comments to this post)