Try this expression in the "Expression String Builder"
, see image below
CASE
WHEN "id" IN (1,2,3,4,5) THEN 'circle'
WHEN "id" IN (6,7,8,9,10) THEN 'square'
ELSE 'triangle'
END
in the "Expression String Builder"
, see image below
Note: When hovering at each symbol you can see the default name of it.
For colours check this thread Multiple styles in one layer in QGIS.