I honestly think this tree solution is extremely hard to find just due to the sheer magnitude of the possibilities. We may need to wait for our next step from VQC. I've played with this for a while and I cannot figure it out.
I devised a strategy to find it though. So we know that for each split in the tree, we should use both branches to get the correct X value for the source of the branches. If we analyze the primes, we should have that the prime branches should return us with a x value of (a=1, d-a = x) d-1. This way we could just try for those and maybe extrapolate out. Idk I'm just thinking we shouldn't try to do 145 right off the bat because the pattern must work for smaller numbers