G is the apparent magnitude in the green part of the spectrum. Astronomers have a standardised set of optical bandpass filters to record the brightness of a star at various wavelengths - U (ultraviolet), B (blue), V (visual), G (green), etc. Using the letter ID of the filter to mean "apparent magnitude as seen through this filter" is a common convention.
G refers to the apparent magnitude[0] in the main filter used by the European Space Agency's Gaia space telescope (one of the most important scientific missions going on right now, though the public is less aware of it than, say, JWST).[1,2]
pc refers to "parsec," a unit of distance approximately equal to 3.3 light years. Parsecs are a natural unit of distance, because a star that is one parsec away has a yearly parallax "wobble" of one arcsecond (not by accident - this is how the parsec is defined). Parallax is the fundamental way in which distances to nearby stars are measured, so parsecs are the natural unit to use. Every greater distance in astronomy is defined with reference to parsecs: kiloparsecs, Megaparsecs, Gigaparsecs, ...
Can anyone explain these two units - G and pc. I'm assuming d is distance? I've googled it but can't figure them out.