When cells are connected in series to form a battery then the resultant voltage of the battery is the simple addition of the voltage of all the cells connected.
So,
(i) Total potential difference = 2 + 2 + 2 = 6 V
(ii) Total potential difference = 2 + 2 + 2 + 2 = 8 V