The total amount you can contribute to either a Roth IRA or a Traditional IRA remains unchanged at $5,500. People 50 and over can contribute an additional $1,000 for a total of $6,500. If your earned income was less than these amounts, then you can contribute up to the amount of your earned income.
For you, specifically, the income limits that apply are based on your filing status, combined with Modified Adjusted Gross Income and you can see the different amounts for each filing status here:
https://www.irs.gov/retirement-plans/amount-of-roth-ira-contributions-that-you-can-make-for-2017