The balance in Shamir's savings account at the beginning of the month was d dollars. After he deposited $175, the balance was $840.50. Write an equation to find the balance at the beginning of the month. Then show your steps as you find the beginning balance.