PLS I REALLY NEED HELP WITH THIS. THANK YOU SO MUCH!!

Cedric earned $50 doing yard work. Cedric spent d dollars on a gift for his family and had X dollars left over.

Explain whether this equation is correct or not:
50 – X = d