tan58=50/x
tan (58) = 50/x multiply both sides by x, divide both sides by tan(58)
x = 50 / tan(58) = about 31.24 [assuming "58" is degrees ]