He could have bought up to 12 large batteries or up to 18 medium batteries.