In the proportion A:B = C:D, the extremes are the numbers "to the extreme outsides of the proportion" -- A and D. The means are then the other two numbers -- closest to the equal sign, B and C.
The unpleasant rule is then "the product of the means is equal to the product of the extremes": BC = AD.
ANSWERS:
(1) In the given proportion, the means are 5 and 24; the extremes are 4 and x.