Draw a figure with a vertical line heading up and one heading down and 500 f' between them.
The man walking north walks 3(t+5) feet and the woman heading south walks 7t.
The distance between them is d and d2 = [3(t+5) + 7t]2 + 5002
Collect terms and differentiate d with respect to t. Then you will have all the information you need to answer the question.