The idea is that the red point is being identified with the entire line, not stretched. My math is a little rusty, but I think you can make a diagram like
http://i.imgur.com/PchSkyI.png and use the fact that Q1 and Q2 are quotient maps to define g and show it's a homeomorphism.
The argument goes something like: there's a universal property on quotient spaces X with quotient map Q which says that if F(a) = F(b) for all a and b in X such that a and b are identified (a ~ b), there's a unique continuous G such that F = G ∘ Q.
So let's take a and b in the top left space. We have a homeomorphism f such that a ~ b if and only if f(a) ~ f(b). Since quotients take equivalent elements to equal elements, Q2(f(a)) = Q2(f(b)). Therefore there's a unique continuous g1 such that Q2 ∘ f = g1 ∘ Q1. We can apply the the same reasoning to Q1 ∘ f^-1 to get a unique continuous g2 such that Q1 ∘ f^-1 = g2 ∘ Q2. Furthermore, g1 and g2 are inverses: g1 ∘ g2 ∘ Q2 = g1 ∘ Q1 ∘ f^-1 = Q2 ∘ f ∘ f^-1 = Q2, and Q2 is surjective. Therefore g = g1 is a homeomorphism.