How is profit shared in a partnership firm?