Revenue and Taxation Code § 7658.5
ARTICLE 1. Returns, Reports, and Payments
Every payment on a delinquent tax shall be applied as follows:
(a) First, to any interest due on the tax.
(b) Second, to any penalty imposed by this part.
(c) The balance, if any, to the tax itself.