By the time they got to algebra, they had so many gaps in their knowledge they couldn't engage with it.
Когда они начали учить алгебру, из-за накопившихся пробелов в знаниях их интерес к предмету пропал.