So you mean the sides of the inside square are units long right?
Well, you're right. You have 4 right angled triangles all constructed the same way and if each length from vertex to midpoint is called n then: .
Is it the algebra you're having trouble with? Just isolate :
Take the square root of both sides. etc. ...