A base-10 integer $n=4\triangle_9=\triangle0_7$, where $\triangle$ represents a single digit. What is the value of $n$?
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
A base-10 integer $n=4\triangle_9=\triangle0_7$, where $\triangle$ represents a single digit. What is the value of $n$?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
42
A base-10 integer $n=4\triangle_9=\triangle0_7$, where $\triangle$ represents a single digit. What is the value of $n$?
train