Notice how the dy is on the bottom? You can move it to the RHS of the equation and move the 2x on the otherside to the LHS and chuck integration operators in front to get an integration.
Haha it's incredibly hard to do that well consistently in most schools. If your school is simply fitting your marks to the bell curve, that's fairly worrying...