Two connected pawns against a lone king win, as long as you do not lose one. The rule: before each pawn move, check that the king cannot take a pawn for free. A pawn is safe if the other one guards it, or if taking it lets the other one queen. If a push is safe, push. If not, bring your king.