The contractor and any subcontractor shall be subject to the provisions of this title, and the state for its general fund, the county, municipal corporation, or other taxing district shall be entitled to collect from the contractor the full amount payable to the accident fund and the contractor, in turn, shall be entitled to collect from the subcontractor his or her proportionate amount of the pay