Given the task definition and input, reply with output. The task is to generate the correct answer for a given math problem.

Problem: if the cost price of 24 chocolates is equal to the selling price of 16 chocolates , the gain percent is :
50 %