Spm 2nd level flexible design

Hi, I’d like to ask you for advice.
My experiment design is consist of two groups, and each group has 10 subjects. Each participant performed fmri twice, so I want to compare the group difference according to repeated measurements.
I am worried about what kind of analysis should be done for this. Flexible factorial design with group(variance: unequal, independence), subject,(variance: equal, independence) repetition(variance: equal, independence) factor would be appropriate?

Waiting for your reply… thank you.