If you multiply the top equation (x+y=3) by 5 it gives you the same exact solution as the bottom one (5x+5y=15). Therefore, the both equations end up being the same and get canceled out because they both end up being (5x+5y=15), and the only way you can solve those is if you cancel out what is common in both equations.