Can someone solve this and tell me how you started the problem?

Answer: Rainbow =0 Hat= 1. Dude= 2 Heart=4 Leaf= 5 clock= 0
I started with heart times 2=8. So heart = 4
Then guy x2=heart and since heart is 4 then guy is 2
Step-by-step explanation: