Inactive Tutor answered 05/22/21
This problem is very similar to another answered question.
Try visiting this link to see if you understand what is going on.
desmos.com/calculator/mlen1ik1hm
Remember the length of a vertical segment is y-coordinate at the top minus y-coordinate at the bottom.