Answer :

v²=w²(a²-x²)
a²-x²=w²/v²
x²=a²-w²/v²
x=√(a²v²-w²)