Scalar Diagram (involving distances only):

We can see that:
Vector Diagram (involving velocities):

[See the section on Vector concepts for more on vectors and scalars.]
We are also given that:
Since we need
, we
use:
Because
we have:
So
We want to know the rate of change of q when x = 10 m, so