What is the correct way to write the following sentence?
I told Mario that he could have some pie, if he gave me a dollar but I didn't have change for a 50.
-------------
A .I told Mario that he could have some pie if he gave me a dollar, but I didn't have change for a 50.
B. I told Mario that he could have some pie if he gave me a dollar but I didn't have change for a 50.
C. I told Mario, that he could have some pie, if he gave me a dollar but I didn't have change for a 50.
D. The sentence is correct as written.