What is the value of d in the equation 5d = 8d - 36?