How far from A should the point P be chosed so as to maximize the angle theta?

http://hw.math.ucsb.edu/webwork/math...5et0407x57.gif

I've been looking at this for awhile and don't know how to begin. Any pointers would be greatly appreciated. Thanks.