Right.
y = tan2x
So dy/dx = 2sec22x
When x = π/8, we have dy/dx = 4 (check this) and y = 1 (check this too).
So the tangent we want has the equation y = 4x + c, and we know that it goes through the point (π/8, 1). Subbing this in gives:
1 = 4π/8 + c, therefore c = 1 - π/2.
This meets the x-axis when y = 0, i.e. when 0 = 4x +1 - π/2, and so the point Y is x = π/8 - 1/4, y = 0.
It's obvious that thew distance OY is then π/8 - 1/4.
DISCLAIMER: I strongly suggest that you work through this yourself as I am very prone to making mistakes, especially when I'm typing stuff like this out from my head!