GEC sizing for detached sub panel

This is a dumb question for me and I apologize in advance.

A 30 amp sub panel (10/3 feeders) in a detached garage, what size wire is needed for the rods? Does it fall under 250.66 “#2 or smaller” for #8 cu or #6 cl? Or does it fall under 250.122 for #10cu because the main GEC is at the main building?
 
Top