Statement A : A tree is stationary with respect to Earth.
Statement B : A tree is stationary with respect to Sun.
Rest and motion are relative
An object is at rest if it is stationary with respect to the observer.
An object is in motion if it is moving with respect to the observer.