Cards and logic problem

Question

Hints

Answer