Choose the equation that could be used to solve this problem.

When 45 is subtracted from a number, the result is 22. What is the number?

A) 22x = 45
B) x − 45 = 22
C) 45 − x = 22
D) x − 22 = 45