The Last dog is about a teenage boy who wants to venture out of the dome an odd place he has never seen before. As he began to explore around he discovers the harmlessness of the unusual place. As he later comes across a dog found next to his dead mother mother'scorpse. deciding take the dog with him.
We do not know how many days he worked, therefore variable d is used to represent d amount of days, but we do know he recieved $15 for everyday that he did work