18x and 6y, though i can't see the operation between, can be factored by dividing out a 6. 6 is the greatest common factor, as it's a multiple of 18.
for 18x + 6y: 6(3x + y) is the factored form. if your symbol is subtraction, it's basically the same, you just change the sign.