Why would I fill out Form 8949 vs Qualified Dividends Capital Gain Tax Worksheet? What is the difference? How do I ensure I’m paying long-term capital gains tax?

I sold some mutual fund shares and received 1099-B. Some gains are long term and some are short term.