Problem involving equal distribution