the string is inextensible. If the directions of accelerations are as shown in the figure