Note that in a speed (or velocity) time graph, the area under the curve represents the area.
Find the area under both graphs (of man 1 and man 2). Cut up the dotted lines to form shapes i.e. trapeziums, rectangles, etc.
Man 1: area = distance = 35m
Man 2: area = distance = 32.5m
So ratio m:n = 35:32.5 = 14:13.