You don’t know if they actually bought another copy of the book. You could try returning the book and asking for your $17.95 back. But they probably have a policy against that.
My local library won’t accept patron purchased replacements.