Answer
(a) $5.1N$
(b) $15N$
Work Step by Step
(a) We know that
$\Sigma F_x=-m_1gsin\theta+T_1=0$
This can be rearranged as:
$T_1=m_1sin\theta$
We plug in the known values to obtain:
$T_1=(1.0)(9.81)sin31^{\circ}$
$T_1=5.1N$
(b) The tension in the string tied to the wall can be determined as
$T_2=T_1+m_2sin\theta$
We plug in the known values to obtain:
$T_2=5.1+(2.0)(9.81)sin31^{\circ}$
$T_2=15N$