Write an equation for the following situation:

Carmen is saving up money to buy a bicycle. She is going to save

$40 per week. After 6 weeks she has $300. Let y represent the amount of money saved and x represent the number of weeks.