Whenever the county or the State is the purchaser the price shall be agreed upon between the county board of supervisors and the State Controller and the governing body of any city in which such property may be located and such price shall be paid to the county tax collector for distribution.