To get maximum current in a resistance of 3 ohms, one can use n rows of m cells (connected in series) connected in parallel. If the total number of cells is 24 and the internal resistance of a cell is 0.5 ohm, then
m = 5, n = 3
m = 9, n = 1
m = 12, n = 5
m = 12, n = 2