If both prisoners betray the other, each of them serves 4 years in prison.
If A betrays B but B remains silent, A will be set free and B will serve 10 years in prison (and vice versa)
If A and B both remains silent, both of them will only serve 3 years in prison