Taking a purely materialist world, a triangle (in the sense of a mathematical object) only exists as an expression of formal language. A triangle does not ‘exist’ it is an idea that can be formulate in a specific formal language, where the ‘properties’ of that triangle are derived statements in the same (or a superseding) formal language. There is ‘triangle’ that exists outside of this, any individual’s understanding or conceptualizing of a triangle is merely a colloquial understanding and usage of the language construct.
I expect there could be some other reductive materialist ways to explain what any mathematical objects are but I don’t know any off the top of my head.