If a 6 foot fence casts a 10 foot shadow then you need to find the ratio 6/10. (This is my method) Now you are trying to find the numerator for X/45.. you need to find what number equals .6 you can use Symbolab as a calculator I typed 6/10 = X/45 and I got 27.