Ringsets tend to be matched so that the chain will cleanly transfer from one ring to the other. This means the teeth of one ring will be clocked in relation to the other such that wherever the chain rises or falls the distance is a discreet integer number of links. Else wise it would be landing on a tooth tip or skip & drop violently. Shimano has various sets usually marked "AE", "AJ", or similar. As long as the letter pairing is the same, all rings of that set should shift appropriately with any other ring of that set..
There is one case where I had used a triple outer ring with a double inner ring on a mountain crankset. I thought all would be well on account of the above advice. It turns out that a 1.2mm spacer was needed to move the ring inboard so that the chain wouldn't drop between the rings & skate. That was a double/triple, 10/11 speed compatibility issue. Nevertheless, when that issue was addressed, shifting (AE, AJ or whatever it was) was flawless.
Match the 2 letter designation and clock both rings appropriately for best shifting performance.