First you find the length of the green rectangle by using a^2 + b^2 = c^2
So that means 4^2 + 7^2 = length of green
That equals 8.1 when you square root it.
Then, you use 8.1^2 + 3^2 (which is the green rectangle height) to find the red line using the same equation
So your answer is 8.6 cm.