Answer: Triangle = 0
Square = 2
Pentagon = 4
Explanation:
If you replace the shapes with the numbers you should see that it works.
I used Trial and error.
3.5m questions
4.5m answers