From the Penta pattern at the box position,

we'll look at the Minor Scale at the box position:

The red dots show the differences between the Penta Scale and the Minor Scale at the box position and this is the pattern you will have to memorize.
A minor: A, B, C, D, E, F, G:
Here is the tab for A Minor at the 5th fret:

|