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?
Yes, you are right:
Let $t$ be the (unknown) total time. Then
So the sum of these distances is $A\cdot 0.65t + B\cdot 0.35t = (A\cdot 0.65 + B\cdot 0.35)t$
From the other side, the total distance is $D$, so we obtain the equation
$$(A\cdot 0.65 + B\cdot 0.35)t = D$$
which you solved correctly.