Help with persistent volume

I am new to kubernetes and have an issue with persistent volumes.
I have 1 pv + 1 pvc and I have 2 pods which must each have a persistent directory on this volume and a 3rd pod which must be able to access the 2 directory of each pod. anyone have an example so they can help me write the yaml file ?