Refer to Figure below, and find the equation for tan θ as a function of x and L.
Hint: Start by using the approximation for very small angles that tan θ ≈ sin θ ≈ θ so then the lengths y and L can be assumed to be almost equal provided that xball << L.