Disclaimer: I am several decades out of school and I feel this is likely very simple. I just want verification.
Given a fixed distance $D$.
An object moves at speed $A$ $65\%$ of the time, and speed $B$ $35\%$ of the time.
What is the total time to cover distance $D$?
Is it simply
$$\frac D {A\cdot 0.65 + B \cdot0.35}$$ or is there more to it than that?