On your diagram, draw on the forces for weight (vertically downwards) and normal contact force (perpendicular to the slope). You also have the frictional force parallel to the slope but you don't know its direction yet.
Now resolve parallel to the slope. Using trigonometry, you can calculate the components of the weight force and the 40N. You know that the net force on the block must be zero since the block is in equilibrium. See if you can work out the friction from here. If you get stuck, please post back.
As for tension, the tension of a rope is the same as the force it's exerting on the object. For example, if you had a ball hanging from a rope in equilibrium with weight 10N then the rope must be exerting an upward force of 10N on the ball, so the tension in the rope is 10N.
Another useful thing about tension is that if you had a rope joined from one object to another, then the rope's tension is the same as the force it's exerting on the first object, which is the same as the force it's exerting on the second object.