Why are you asking all these question if you don’t know the scale they belong to?
Then you know all 12 minor pentatonic scales Pattern 1. the root note is the letter of the scale’s name. G minor pentatonic is the same patter but starts on the note G and so on.
Buy listening to where the chord progression resolves. This take practice by learning and playing songs and using your ears.