Hi,
You can see the guidance on Private Residence Relief here:
HS283 Private Residence Relief (2024)
Provided the jointly owned flat was his main residence, he would have Private Residence Relief to set against any gain and this could cover all of the gain.
If he owns a second property, he should conifrm in writing to HMRC, which property is his main residence and from which date, as he can only have one main residence at any one time for Capital Gains Tax purposes.
There is a Capital Gains Tax calculator which also provides guidance on how to report and pay any Capital Gains Tax here:
https://www.gov.uk/tax-sell-property
Thank you.