A cruel king was giving his prisoner a chance to escape.
In order to escape he had to pick the yellow marbles out of a black jar.
The king was so cruel that he put two green marbles in the jar instead of one yellow and one green.
The prisoner still escaped safely, how did he do it?