I accidentally reposted that question, but I think that answer is 59 from brute forcing it. I think there is a more logical way of solving it using mod however my math skills aren't great enough.