Fermat was an amateur mathematician of great intellect. He wrote this problem:

Find the point whose sum of distances from the vertices (corners) of a given triangle is a minimum.