no prime digits

Two real numbers in the unit interval are generated by successively choosing non-prime digits at random. The expectation of the absolute value of the difference between them is of the form $$\frac{A}{B}$$ for coprime positive integers $$A, B$$. Find the value of $$A+B$$.

There is a possible hint in the picture.

×