A wire runs from the top of a pole that is h feet tall to the ground. The wire touches the ground a distance of d feet from the base of the pole. The wire makes an angle of theta with the top of the pole. Express h in terms of theta and d.