I'm not sure what type of cells you want to use for the battery. If you use lithium iron phosphate 26650: 3.2V per cell
You need 4 series and 20 parallel: that is, 4 cells in series is 12.8V 2A, make 20 such series connections, all connected in parallel, the result is 12.8V 40A, which requires 80 batteries.
If you are using 12V 2A battery cells as a battery, you only need 20, and they can be connected in parallel rather than series. The result is 12V 40A.