Rosie receives a weekly salary of $350 and a 6% commission on all sales.

a.) write a function f (d) that model the weekly earnings in terms of d dollars in sales.

b.) Find Rosie's earnings for a week with $670 total sales.