Doubt from Carboxylic Acids

15725449473282799454053149544352

How to solve this ?

157254523006444397936575649815

How to solve this too ?

image

image