2x-5+2(2x)+17=-2-5x+(4xy-7)

distribute the parenthesis..2x-5+4x+17=-2-5x+4xy-7...now combine like terms (add/subtract the ones in common) and solve