How to file HSA and FSA in the same year

I was with my former employer from Jan- Aug 15th 2021, which was under HSA plan. Then I was hired by my current employer from Aug 17th - Dec 2021 and they use FSA plan, which I contributed to both. How do I file tax?