Which of the following figures could have both line symmetry and rotational symmetry?

Select all that apply.

Equilateral triangle
Regular octagon
Rectangle
Isosceles triangle
Square
Trapezoid