How does liquidation work? How much of my collateral gets liquidated, and which collateral tokens get liquidated?

Thank you for the detailed explanation! I suppose part of the benefit of using Aave vs. a bank is it’s programmatically (through code/game theory) solvent.