Any two or more persons having an estate or interest in, or lien or encumbrance upon, real property, under a common source of title, whether holding as tenants in common, joint tenants, copartners, or in severalty, may unite in an action against any person claiming an adverse estate or interest therein, or lien or encumbrance thereon, for the purpose of determining such adverse claim, or establishing such common source of title, or declaring the same to be held in trust, or of removing a cloud upon the same.
N.D.C.C. § 32-17-03