The maximum amount of us currency you can exit with or exit with US Customs is $10,000.00 cash (legally).
If you enter the USA with more than $2K undeclared you may end up on "Bench Q" waiting to have a finger stuck up your ass. [You may enjoy that and drop a poo -- then you will get deported for shitting all over the place

]