Denali buys a present for $21.99 and is given $8.01 as change.

Which equation represents the situation if x is the amount Denali had before she bought the present?

A
21.99x=8.01
B
21.99−x=8.01
C
x−21.99=8.01
D
x+21.99=8.01