Joshua opened a bank account with some money he had saved. During the month, he made deposits of $25 and $40, and he made withdrawals of $15 and
$35. At the end of the month, he had $170 in his account. How much money did he have when he opened the account?

A $285
B $155
C $55
D $15