It's probably easiest to do it in Table form
Cost
Cost: 250 A shares @ $72 = $18,000
Valuation before the split
250 A shares @ €70 = $17,500
Valuation after the split
250 A shares @ $55 | $13,750|78%
125 B shares @ | $3,750|22%
Total | $17,500|100%
So I would apportion the $18,000 cost as follows:
A - 78% - €14,040 or $56 per share
B - 22% - $3,960 or $31 per share
I havn't sold these yet so this issue is not important now.
You should do a very clear note to yourself as to how you arrive at the cost of B and the resulting cost of A.
I find that after a few years, when I go to sell something like this, it takes me ages to figure out the calculations I used. So now, I spell it clearly.