Railroad Tie Problem

This is a surprisingly challenging puzzle from the Mathematics 2020 calendar.

“The sketch is of equally spaced railroad ties drawn in a one point perspective. Two of the ties are perceived to the eye to be 25 feet and 20 feet respectively. What is the perceived length x of the third tie?”

Even though the ties are equally-spaced and of equal length in reality, from the point of view of perspective they are successively closer together and diminishing in length. The trick is to figure out what that compression factor is. I had to review my post on the Perspective Map to get some clues.

See the Railroad Tie Problem