Heron's Problem

Given two points A and B on the same side of a line m, find a point X on m such that the sum of distances AX + XB is the smallest. Notice that and explain why the light ray issued from A to the minimum point X after reflection in m hits B.