Step 4: Match Formats to Categories