If there is recovery under this chapter against an owner, bailee of an owner, or personal representative of a decedent, the owner, bailee of an owner, or personal representative of a decedent is subrogated to all the rights of the person injured or whose property has been injured and may recover from the operator the total amount of any judgment and costs recovered against the owner, bailee of an owner, or personal representative of a decedent.