Updating old WP installation - which order

I am on behalf of a customer updating their wirdpress site with Cornerstone and X, everything is outdated and I wanted to ask which order of events i should target.

Wordpress: 6.1.16
Php: 7.4.34
Cornerstone: 4.2.3
X: 7.2.3

I have full access and can update in any recommended order.

Please advice.
/C