ROTH for 2022 - How much?

For 2022, my 19-year-old earned $3,497 on a W2 through her job and $1,500 on a 1099-MISC through a "summer internship."

 

How much can she contribute to her ROTH IRA for 2022?

 

I'm not sure if she can only contribute the W2 amount or W2 + 1099-MISC amount (both less than the 2022 limit of $6,000).