Which of the following figures could have both line symmetry and rotational symmetry?
Select all that apply.

square
equilateral triangle
rectangle
isosceles triangle
trapezoid
regular octagon