Answer:
The distance between the centers of the gears is 27.4 inches
Explanation:
see the attached figure with letters to better understand the problem
In the right triangle ABC
Applying the Pythagorean Theorem

we have


substitute


therefore
The distance between the centers of the gears is 27.4 inches