Extended thermodynamics of dense gases with at least 24 moments