As a membership fee, a health club charges a one-time amount of $40 and charges $25 for each month. The total fee after m months is $240. What is the value of m?