Primrose edge out Young Peoples in a muddy quarter-final clash