There are two octagons- Octagon A and Octagon B. What must be true about these two octagons for them to be described as congruent?

the sides and angles must be congruent

if they are "regular" octagons, the side lengths must be equal