9mm as an under-21 is tough.
Folding stock M1 carbine, but ammo ain't cheap, and you need minty mags to keep reliability up. Also not a super cheap platform.
I say 10/22 with minimags. Not great for hydraulic or pneumatic, but it'll do electrical and mechanical.