If 50% of x equals the sum of y and 20, then what is the value of x-2y?