2x^2-7x-4= X^2-5x+4=

( )( ) ( )( )

no idea what you're asking.

2x^2-7x-4 = (2x+1)(x-4)
x^2-5x+4 = (x-1)(x-4)

I'll leave it up to you to decide how that relates to your real question.