Find the scale factor then multiply 3 by scale factor to find m. Scale factor is found by dividing larger side by smaller side. In this example, divide 10 by 6. (10 / 6 = 1.66666...) This means the larger triangle is 1.6x bigger than the smaller one. Then multiply 3 by 1.6666.. to find m. Hope this helps! :)
Btw your answer would be m = 5 but I didn’t want to give that away right away.