In a basketball game the home team scores (2m + 39) points and the visiting team scores (3m + 40) points. Find the sum to represent the total points scored by the two teams m minutes past halftime.