Another Answer.
Explanation: The lads release Jim, who is currently residing on a plantation owned by Tom's aunt and uncle. However, a pursuer shoots Tom. In exchange for helping Tom recover, Jim forfeits his freedom and is thereafter hauled back to the plantation in shackles. Upon awakening, Tom acknowledges that he was aware that Jim was free the entire time, and Jim is freed.
Either or is correct :)