HN Company had a beginning cash balance of $50,000; cash payments of $15,000 and a loan balance with the bank of $7,000. If HN has an agreement with the bank that they will maintain a minimum cash balance of $30,000, their ending cash balance is $