ERC-4626 provides two ways to enter a Vault and two ways to exit it.
You do not need to memorize all four functions separately. For each function, ask one simple question:
Does the user specify the amount of assets, or the number of shares?
With deposit, the user specifies how many assets enter the Vault. The Vault calculates how many shares to mint.
With mint, the user specifies how many shares they want to receive. The Vault calculates how many assets are required.
With withdraw, the user specifies how many assets they want to receive. The Vault calculates how many shares must be burned.
With redeem, the user specifies how many shares they want to burn. The Vault calculates how many assets are returned.