Please correct grammar errors in the sentence:
What the customers are willing to buy gave rise to the preference of companies.
What the customers were willing to buy gave rise to the preference of companies.