Can we assume that the angle on top is also 90 degrees? In other words, how do you know that the acute angle up there is 47? There's nothing to suggest that the vertical line (Y) and the horizontal line on top make a right angle.
Otherwise the answer is [20 tan (43)] or [20 / tan(47)].