Popular sizes are 8.5x8.5, 6x9, and 8.5x11
Popular combination of book format and publishing company:
KDP Amazon requires at least 72 pages for a hardcover. It means you can’t publish a 40-page book on KDP Amazon as a Hardcover. Alternatively, you can publish it via Ingramspark.