Look at the notes and the lecture – legal expenses in connection with a capital cost are not allowable deductions against trading income – they are capital costs and will instead be deducted as a capital cost in computing any chargeable gain on disposal