So, if I understand you correctly, you're trying to use cross multiplication to solve 40/x = 4. This would work just fine. Setting up the problem gives us:
\(\displaystyle \dfrac{40}{x}=\dfrac{4}{1}\)
Cross multiplying shows us that:
\(\displaystyle 40 \cdot 1 = 4 \cdot x \implies 4x=40 \implies x=10\)
Your other proposed solution sounds sensible at first glance, and it too will work, but I suspect you messed up a bit on the algebra to end up with x = 1/10. As you (should) know, when you multiply one side of an equation by something, you must also multiply the other side of the equation by the same something. Let's try multiplying both sides by 1/40 and see what happens:
\(\displaystyle \dfrac{40}{x} \cdot \dfrac{1}{40} = 4 \cdot \dfrac{1}{40} \implies \dfrac{40}{40x} = \dfrac{1}{10}\)
If we do a bit of simplifying, we're left with:
\(\displaystyle \dfrac{1}{x} = \dfrac{1}{10}\)
Then taking the reciprocal of both sides tells us that x = 10. This checks with the cross multiplication method, as well as simply plugging the solution back in. 40/10 = 4, as stipulated.