I learned basic algebra from something like this in book form. Kind of like a "choose your own adventure", but it would pose problems, and either skip ahead on the correct answer, or lead to clarifying text for common mistakes.
(no longer remember the series title, but do still remember the penny finally dropping on "x is an unknown")
(no longer remember the series title, but do still remember the penny finally dropping on "x is an unknown")