Oakland offense comes alive in 9-3 win over Royals