(a) Collection of liability. Any money realized by proceedings under this article (whether by seizure, by surrender under Section 40-29-24, except pursuant to subsection (b)(2) thereof, or by sale of seized property) or by sale of property redeemed by the State of Alabama (if the interest of the State of Alabama in such property was a lien arising under the provisions of this title) shall be applied as follows:
(1) EXPENSE OF LEVY AND SALE. First, against the expenses of the proceedings;
(2) SPECIFIC TAX LIABILITY ON SEIZED PROPERTY. If the property seized and sold is subject to a tax imposed under this title which has not been paid, the amount remaining after applying subdivision (1) shall then be applied against such tax liability, including any penalty and interest, (and, if such tax was not previously assessed, it shall then be assessed);
(3) LIABILITY OF DELINQUENT TAXPAYER. The amount, if any, remaining after applying subdivisions (1) and (2) shall then be applied against the liability in respect of which the levy was made or the sale was conducted.
(b) Surplus proceeds. Any surplus proceeds remaining after the application of subsection (a) shall be refunded by the commissioner or his delegate to the person or persons legally entitled thereto.