Pete's checking account showed a balance at the beginning of the month of $180. After 3 days the checking account showed a balance of $160. Write a linear equations to represent the total in the checking account f(x) according to the day x.