Geometrical solution of weighted Fermat problem about triangles