Dear Taniya, no need to fret. This is a very simple question used for confusing the students. Since the acceleration of both the bodies will be g downwards, therefore their relative acceleration will be zero.
Taking upward direction to be positive and ground as refrence, we have:
Acceleration of 1st body = a1 = -g
Acceleration of 2nd body = a2 = -g

Acceleration of 1
st body wrt 2
nd is given by:
a12 = a1 – a2 = -g – (-g) = 0