BERLIN — Lukasz Kubot and Marcin Matkowski recovered to beat Germany's Daniel Brand and Daniel Masur 6-7 (5), 4-6, 6-3, 6-4, 6-2 and keep alive Poland's hopes in their Davis Cup World Group playoff on Saturday.

With Sunday's reverse singles to come, Germany leads 2-1, and its higher-ranked singles players are favoured to seal victory.

Kubot and Matkowski seemed to be in trouble against Brand and debutant Masur when they lost the first two sets, and it took them more than 3 1/2 hours to recover.

The winner of the tie will stay in the 16-team World Group in 2017.