I will draw the triangle to show the given information
To find b we will use the sine rule

Since a = 12
Since < A = 40 degrees
Since
Substitute them in the rule above

By using the cross multiplication

Divide both sides by sin 40

The value of b is about 16.17 cm to the nearest 2 decimal places