This is not a homework service.
That is not the way it works here. You must show some effort. Post some effort.
Then then tell us what you do not understand.
If you draw a line from perpendicular to you cut the figure into a rectangle and a right triangle (the right triangle Soroban is referring to). The distance between centers is the length of the hypotenuse of that right triangle. What are the lengths of the two legs of the right triangle?