Let's take the ratio of the sides
Using proportion,
5/10 = 4/x
cross-multiply
5x = 40
Divide both-side of the equation by 5
x = 8
1.6m questions
2.0m answers