make x the subject

1/4wxy-p=k

multiply by 4

wxy - 4p = 4k
wxy = 4k + 4p
x = (4k + 4p)/(wy)