how do you put this in an diamond problem ...

could you please tell me how to do it...2x^2-7x-30

Don't know what you mean by "diamond problem" in this context.

I know the term is associated with computer programming in the C language, but here ...????

are you perhaps factoring 2x^2-7x-30 ??