because I can place the main cable vertically
No, you can't.
Quoting the statement:
A main cable will cross through the park from the West to the East (from the position x of the most westerly building to the position x of the most easterly building).
yes, thanks,you are right, I solved the more complicated case, and wondered why my solution was wrong ...