Please reason step by step, and put your final answer within \boxed{}.
In the arithmetic sequence $\{a_n\}$, $a_7=8$, and the sum of the first 7 terms $S_7=42$, then its common difference is ______.
user