2 Joash did that which was right in the eyes of Yahweh all the days of Jehoiada the priest.
*Minor differences ignored. Grouped by changes, with first version listed as example.
Jehoiada lived after the accession of Joash at least 23 years 2-Kings 12:6. Thus the idolatries of Joash 2-Chronicles 24:18 were confined to his last 10 or 15 years.
And Joash did [that which was] right in the sight of the LORD all the days of (a) Jehoiada the priest.
(a) Who was a faithful counsellor and governed him by the word of God.
*More commentary available at chapter level.