Jim Tree writes a $40 check that is returned for "insufficient funds." His bank charges a $20 fee for an overdraft, and the company he wrote the check to charges $15. How much must Jim pay in total to clear up this situation?