
Doug C. answered 05/22/21
Math Tutor with Reputation to make difficult concepts understandable
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.