This isn't the complete solution, only a first step:

1. because:

2. Therefore the area of the triangle PQR is calculated by:

3. Since you "know" () the angles of the triangles and and at least one side of these triangles it must be possible to find the optimal place of P on .