Melody lives due south of her cousins house and 40 miles due west of her grandparents house. One day she drove to her cousins house in a straight line from her grandparents house. How far did she drive?