In game theory, prisoner’s dilemma or maybe stag hunt?
https://en.wikipedia.org/wiki/Prisoner%27s_dilemma https://en.wikipedia.org/wiki/Stag_hunt