When it's laid out like that. 2 division statements on either side with one unknown variable you just cross multiply really easy
5 x 24 / 6 = 20
Take the number that's on the same position of the x thats 5 then multiply it to the numerator or denominator of the x thats 24 then divide it to its denominator thats 6