Hello,
Here is a very good explanation on Agnd and Pgnd, please check out the thread below.
You can connect the Agnd and Pgnd at a single point as shown in the figure below
Please let me know if you have any more questions!
Thanks!