I have no idea how 八九不离十 works?
八九不離十 means almost there and I accept it or pretty close and I accept it, the most important thing is and I accept it. The ten may be perfect but if nine or eight are still fine.
“汤姆说考试八九不离十就可以了。” means Tom doesn't chasing for perfect in test.