Can I use inequalities?

I have a problem:
A man walks in a store and spend half of his money. After he got out he saw that he has as much cents, as he had dollars in the beginning and that he has dollars as half of the cents he had before he entered the store.

I have a problem:
A man walks in a store and spend half of his money. After he got out he saw that he has as much cents, as he had dollars in the beginning and that he has dollars as half of the cents he had before he entered the store.

I have a problem:
A man walks in a store and spend half of his money. After he got out he saw that he has as much cents, as he had dollars in the beginning and that he has dollars as half of the cents he had before he entered the store.

Yeah, I saw that after the post. I got to the end equation, but I was thinking about the 100 cents in a dollar thing and did not thought about that they need to be a whole number.
Thanks any ways, you are great