There's two things going on that you need to understand.
- The pattern for the major and minor scales are different. If you were to play a C major pentatonic scale you would play the notes C, D, E, G, A. If you were playing the C minor pentatonic you would play the notes C, Eb, F, G, Bb. Both are shown below:
- There are major and minor pentatonic scales that share the same notes. These scales are related and typically refereed to as the relative major/minor. If you were to play a C major pentatonic scale you would play the notes C, D, E, G, A. If you were playing the A minor pentatonic you would play the notes A, C, D, E, G. Both are shown below:
So yes there are major and minor pentatonic scales that share notes, but the pattern is not the same. There are technically more than just two patters and using them you can span across the whole guitar as shown in this question.
All pictures from basicmusictheory.com