Each row contains two dots.
The square moves 3 steps clockwise from left to right. The triangle moves two steps to the right and continues one row lower on the left when the end is reached. When the bottom is reached, the triangle continues at the top.