did you draw a diagram? you should always do this with related rates problems, where possible. see the diagram of the situation below. where would you go from here? what equation do you know that can relate a and x? it is a right-triangle, so you should immediately be thinking of things like Pythagoras' theorem and trig ratios