From now on, remember that the smallest side in a triangle is always facing the smallest angle of the triangle.
_________________________________
The question told us that the shorter leg has a measure of 14 in which it is tha smallest side of the triangle thus 14 is the facing side to the 30 degrees angle .
As we know, in a right-angled triangle, the facing side to the angle of 30 degrees has half measure of hypotenuse. So :
1/2 × hypotenuse = 14
Multiply both sides by 2
hypotenuse = 28