You haven't said if you own another property but if you do then chargeable consideration for higher rate stamp duty is £40k so I believe you would be liable for the total amount you take over.
HMRC's stamp duty is fairly detailed:
https://www.gov.uk/guidance/stamp-du...ntial-property