(a) Each row has emf nE and internal resistance nr; m rows in parallel have emf nE and internal resistance mnr:
I=R+mnrnE=mR+nrmnE
The numerator mnE=24E is fixed, so I is largest when mR+nr is smallest. The product (mR)(nr)=mnRr is fixed, and a sum of two positive numbers with a fixed product is smallest when they are equal:
mR=nr⇒mnr=R
The internal resistance of the arrangement equals the external resistance.
(b) mn(0.5)=3 gives n=6m; with mn=24: 6m2=24, so m=2 and n=12.

Emf =12×2=24 V, internal resistance =212×0.5=3 Ω:
Imax=3+324=4 A
(For comparison, all 24 in series give 3+1248=3.2 A; all in parallel give 3+0.022≈0.66 A.)