How do you write 1 is to 2 as 5 is to x

as a proportion in fractional notation?

The proportion in fractional notation would be:

1/2 = 5/x