If you take moments around joint number 1, forces X and Z pass through the joint, and so the only force resisting the turning moment of the external forces is force Y (since the system is in equilibrium). You'll have to work out the perpendicular distance between Y and Joint 1 (some combinatione of Sine rule, Cosine rule and pythagoras, usually), and then take moments around joint 1 = 0, and taking clockwise (because why not) direction as positive.
That gives: (20kN * 2) + (20kN * 4) - (Y * distance) = 0. Which lets you work out Y.
Once you have Y, take another joint that X passes through, but not Z (or the other way around, doesn't matter too much), in other words, Joint 2 or 3, and take moments around that to find force Z. Then you can find out force X by doing the same thing: Take moments around any joint that X DOESN'T pass through to find X.
That's the explanation of HOW to do it. If you really can't do that, your teacher really should be helping you on this, man.