_allocPoint Pool Rewards

Hello community I am developing a project where swap, pool is working correctly, now I want to add the apy value to the corresponding pool, but I want to understand _allocPoint how it works.

I want to have a pool with 50%, what number should I enter in _allocPoint or what formula follows to understand and add the corresponding percentage