Answer:
98 or 18
Step-by-step explanation:
Let's call the numbers 3x and 7x. We have two cases, either 42 is 3x or 42 is 7x. Looking at the first case, if 3x = 42, x = 14 which means the other number is 7 * 14 = 98. Looking at the second case, if 7x = 42, that means x = 6 so the other number is 3 * 6 = 18.