$$\frac{8}{9} \cdot \frac{45}{1}= 8 \cdot 5 = 40.$$ so the answer is 40.
$${\frac{{\frac{{\mathtt{8}}}{{\mathtt{9}}}}{\mathtt{\,\times\,}}{\mathtt{45}}}{{\mathtt{1}}}} = {\frac{{\mathtt{40}}}{{\mathtt{1}}}} = {\mathtt{40}}$$
DONE
$${\frac{{\mathtt{45}}}{{\mathtt{9}}}}{\mathtt{\,\times\,}}{\mathtt{8}} = {\mathtt{40}}$$
.