Under her cell phone plan, Nora pays a flat cost of $35.50 per month and $5 per gigabyte. She wants to keep her bill at $42 per month. Write and solve an equation which can be used to determine g, the number of gigabytes of data Nora can use while staying within her budget.