There is no race condition.
The order won’t actually matter here - but even if it did, the “right” thing will happen either way depending on which interpretation of the email you have.
The third transaction got the same response as the second. Which would actually imply that the common reading of that email (he’s getting $25 back from the second deposit is correct, and he’s going to get the entire $9,975 back from the third.)