The yellow sides correspond to each other and the pink ones correspond so a correct proportion would be

Solving this by cross multiplying gives 5x = 8, which tells us x = 8/5.