Do you know that cos(\theta) = adjacent / hypotenuse, in a right triangle? If not, now you do. =) Like the other poster said, these trig relationships are key to anything having to do with vectors, which is everything, since vectors are really just motion in non-1-dimensional space, or the entire world.
Consider the first tension force vector. Draw a line from the tip of the vector to the x-axis perpendicular to the axis. Do you see the triangle?
I don't know if you know this so I'll go over it anyways. A triangle can be represented as three vectors. The two non-diagonal sides can be seen as vectors originating from the intersection. I assume you know how to add vectors. What happens if you add these two vectors? You get the hypotenuse vector! What is this hypotenuse vector in your situation? Here's a picture of a vector-based triangle:
Your answer to the above question should've been "tension force". Did you get that? If not, do you see why now?
Do you know the component representation of a vector? It's the x-axis component + the y-axis component. So, by the figure above, we can represent the tension by the horizontal vector and the vertical vector. These horizontal and vertical vectors are the contribution the tension makes in that direction. Now we're getting somewhere - we have a way to find the contribution of the tension along the x-axis! But how do we find it?
Recall that cos(\theta) = \frac{A}{H}, or cos = adjacent over hypotenuse. (This is the SohCahToa thing mentioned - I use Some (Sin) Old Hippie (Opposite/Hypo) Caught (Cos) Another Hippie (Adj/Hypo) Tripping (Tan) On Acid (Opp/Adj))
Assume we know the magnitude of the tension. Solve for the adjacent, or the horizontal component, or the contribution the tension makes in the x-direction.
Now, do the triangle thing on the other tension too. You should now have two expressions for the x-component of the tension. You should have the expressions below. If you do not, check your work.
T_1x = cos(\theta)T_1
T_2x = cos(\theta)T_2
Consider the entire system now. Contributions in the y direction should not affect anything in the x direction. If I pull up a string attached to a ball, the ball will not magically start rolling to the left. It will go up, and up only. By your drawing, do you see that the only two forces acting in the x-direction are T_1x and T_2x? Can you also see that they are in opposite directions? If not, stop and think.
To prove that T_1 = T_2, let's consider the opposite case; that is, they aren't equal. Then you can see that the x component of one of T_1 and T_2 must be greater than the other, since the angle is the same in your drawing. This means the system has a net force in the x-direction somewhere, which by F=ma, puts it into motion. This contradicts the situation (it's in equilibrium), and we have proven that T_1 = T_2.
Sorry, I know I added a lot of background, but I wanted to make sure you understood everything that's going on. It really is an integral concept in kinematics, and if you don't get it now, you'll be in trouble later on.
In response to your latest question, what part of the triangle do you need to consider now? Remember that if I pull left on the marble, it will not, unless acted upon by Merlin, move up or down.