Try dragging DJK to find a minimal perimeter for the blue triangle.
App generated by Geometry Expressions