#Japt, 2018 bytes
Set out on this determined to beat Kamil's solution but was stuck on 21 for a good while until I borrowed a trick from him & tweaked it so, if you're upvoting me, please upvote him too. (Convinced there has to be a shorter way, though!)
Æ=ìG ®+zA)uAÃì®%9ª9Ãì)sGÃæÑ
Try itTry it