Write the sentence as an equation.

q subtracted from 311 equals 198

311 - q = 198

311 - q = 198