A man is paid in coins $c$ starting on day $d = 0$. At the end of every week, he is paid $5$ coins. Additionally, every tenth day, he is paid $1$ coin for every tenth day since $d = 0$.
The man wants to use these coins to buy as many bricks as he can so that he can build a house. Bricks cost...