Which of the following equations represents a linear function?

A: x = 3
B: y equals one half x minus 5
C: y equals three fourths x squared
D: 3x − 6 = 4