How would my brokerage money be taxed if I just take out contributions.
This is not a thing for brokerage accounts.
There are a number of differences between IRA and brokerage accounts:
A brokerage account is subject to tax anytime a dividend is paid, or stock is sold (for a gain) even if the money remains in the brokerage account.
Cash in a brokerage account can be removed at-will without a taxable event occurring.
How long money has been in a brokerage account is irrelevant for taxes. What matters is only when an investment itself was purchased and sold.
Here's an example:
If you spent $10K two years ago on 100 shares of AwesomeCo, they doubled and you sold them today for $20K, you will have made $10K, and that $10K will be subject to long term capital gains tax. If instead you sold only 50 shares for $10K, you will have made $5k, and that $5k will be subject to long term capital gains tax.
If you had a bad investment that you bought 1.5 years ago for $10K that is now selling for $5K, you could sell that bad investment, and the loss could offset your gain in AwesomeCo. If you sold 50 shares of AwesomeCo and all of your bad investment, your overall gain for the year would be $0 and you would owe capital gains tax on $0.