This is the pattern formed by the shapes. B is the correct answer. The pattern is square, circle, triangle and this is repeated again so square, circle, triangle, square, circle, triangle.