The triangle inequality theorem states that the sum of any 2 sides of the triangle must be greater than the third one.
For example if we have the triangle ABC, with sides AB, BC and CA, the theorem applies if
So for the given side lengths 12cm, 25cm and 12 cm
For these sides it checks out
For these sides it does not check
For these sides it checks out
Since the sum of the sides with length 12cm isn't greater than the third side, with measure 25 cm, then we can concluce that these three side lengths cannot form a triangle.