5. (10%) Where should the point \( P \) be chosen on the line segment \( AB \) so as to maximize the angle \( \theta \)?