Under her cell phone plan, Sydney pays a flat cost of $35.50 per month and $5 per gigabyte. She wants to keep her bill under $50 per month. Write and solve an inequality which can be used to determine x, the number of gigabytes Sydney can use while staying within her budget.