If the cash equivalent to a perpetuity X payable at the end of every 6 months is 20000 if money is 5 percent p.a. compounded half yearly find the value of X.