周瑜打黄盖 zhōuyúdǎhuánggài both parties are willing
Used to describe a situation where two people are in mutual agreement even if one party appears to be suffering or at a disadvantage; literally "Zhou Yu beats Huang Gai," referring to a famous ruse from the Three Kingdoms era where a general accepted a mock beating to deceive the enemy.