From P = V2/R and P = E/t we have (E × R)/V2 = t.
For case 1, we have RT = 2r (because in series) and VT = 2v (again, because in series, so just sum), where r and v are the resistance of one resistor and the potential difference across one cell respectively. Therefore,
(E × 2r)/((2v)2) = (Er)/(2v2) = t1.
For case 4, we have RT = ½r (because in parallel) and VT = v (as from Kirchhoff’s voltage law, the voltage from the positive end of the two cells is just v, from where ever you take the loop from just those two cells). Therefore,
(E × ½r)/v2 = (Er)/(2v2) = t4 (= t1).