Miss lin bought 40 berry,strawberry,chocolate cookies.The ratio of number of berry cookie,strawberry cookie, chocolate cookie was 7;5;8.find the number of chocolate cookies.