If the mass of the block is 2 kg, then the values of T is :
30N
Weight of the block = mg = 2×10 = 20N
In equilibrium, net force acting on the block will be zero, i.e., If the block is at rest , then the forces acting upwards should be equal to the downward force.
Tension T is acting upwards and its weight and 10N force is acting downwards.
So,
10N+20N= T
⇒T=30N.