Dear KROSSA, apologies for the late reply.
The answer is rather simple - you need to add up the three numbers.
5+8+9 = 22
1+4+5 = 10
7+3+2 = 12
Thank you!
I actually figured it out on my own right after I sent this message lol