Martina buys cocoa powder to bake some items. She uses 3/8 of cocoa powder to bake chocolate cakes and the remaining for baking doughnuts and cookies. If cookies consume 3/10 of the remaining cocoa powder, what fraction of the cocoa powder is used for baking cookies?