Step 1: Recall what tanning chemically is.
It's the mutual coagulation of two oppositely charged colloidal systems, the charges neutralise each other and the material hardens.
Step 2: Identify the charge on animal skin.
In the tanning bath, the skin's proteins pick up a positive charge.
Step 3: Identify the charge on tannin.
Tannin's phenolic groups make it behave as a negatively charged colloid.
Step 4: Put it together.
Opposite charges attract and precipitate together, this is exactly what tans the hide.
Final answer: Option 2, X is positively charged, Y is negatively charged.