Scratch Cat will ask you to provide A, B, and C, and it'll solve for x.
Thanks to DrShoe32! This is a GOOD little math+coding project! I came up with two ways to do the calculation -- one that's a simpler two-step (but requires a little coding know-how) and another that's a one-step (but is harder to compose in blocks, and maybe harder to read).