This is a follow up to a question I asked previously. But here is the full question:
Consider two convex polygons A and B. Polygon B lies completely inside polygon A. There are two lines with different slopes (both fixed slopes), such that they have one common end point on or inside B and their other end points (would be different) lie on the boundary of A.
How would you find this common end point inside or on polygon B, if your objective is to maximize the sum of lengths of these two lines?