what is the value of x if 4:x=24:28

You can rewrite that as

4/x = 24/28
or
x/4 = 28/24 = 7/6

Multiply both sides by 4 to get

x = 28/6 = 14/3 = 4 2/3