Updating 2 TextMeshPro UI elements from a script

Please use code tags .

Instead of locating the text object using FindObjectOfType, try making the variable public and dragging the appropriate component into the field in the Unity inspector window. Then you can easily have several variables that all refer to different objects.

(There are various other ways to obtain references to a desired object or component, but this is usually the simplest option.)