Royals outslug Brewers 9-7