Two blocks A and B are tied with strings under water, as shown. The density of A is greater than water whereas that of B is less than water. The tensions in the strings are T1 and T2 respectively.

How will the tensions change if the whole setup starts accelerating in the upward direction?