The length of the red dashed line would be found using the Pythagorean thereom.
X = √(24^2 + 12^2)
X = √576 + 144)
X = √720
X = 12√5 inches.