An isosceles triangle has a base of 20cm and legs measuring 36cm. How long are the legs of a similar triangle with a base measuring 50cm?