Trial and error. I couldn't find any proof of exhaustiveness though so didn't offer a solution initially.
blackjack
flooble's webmaster puzzle