For an analogue system with compensation:

D(s) = 40 (s + 2)/(s + 10)

and plant

G(s) = 1/(s(s + 1))

(a) Use Euler's "forward rectangular method' for time-domain emulation to determine the difference equations for digital implementations of D(s) and G(s), respectively, with a sample rate of 50 Hz.