Let ABCD be the rectangle where AB is b and BC is h.

Draw a line PFQ parallel to AB.

PF is the diameter of the circle. PEF is a right angled triangle which is similar to BCD. Now compare equivalent sides to find the length of the chord EF in terms of h and b.