Answer
There is no triangle with the provided measurements.
Work Step by Step
Using the ratio $\frac{a}{\sin A}$ or $\frac{10}{\sin 30{}^\circ }$,
We will use the law of sines to find B.
$\begin{align}
& \frac{b}{\sin B}=\frac{a}{\sin A} \\
& \frac{10}{\sin 30{}^\circ }=\frac{40}{\sin B} \\
& \sin B=\frac{40\sin 30{}^\circ }{10} \\
& \sin B=2
\end{align}$
As we know that sine can never exceed 1, therefore there is no angle B for which $\sin B=2$.
There is no triangle with the provided measurements.