Long-term capital gains are usually taxed at 0%, 15%, or 20%, but can get as high as 25% or 28%.
Long-term capital gains rates range from 0% to 20% for 2021 and 2022, except in special circumstances.
The capital gains tax rates apply to your net capital gains.
Since both assets were held long-term, you can net them against each other: $3,000 gain - $2,000 loss = $1,000 net gain taxed at long-term capital gains rates.
You can complete a short questionnaire on the IRS website to figure out how to pay your capital gains tax.