138

831
318
183

What is the next row and how do I figure out the pattern?

all contain 1,3,8, and they are different orders

So the next is
813, then 381 That completes all the assortments.