Sam started a savings account with $300. After 5 weeks, he had $350 dollars, and after 10 weeks, he had $400. Write an equation in slope-intercept form that would fulfill this problem?