Answer:
The two consecutive even numbers are 12 and 14.
Step-by-step explanation:
Set up the equation, which turns out to be a quadratic, solve for n:

We are looking for positive even numbers, so the solution -7 is not valid. The solution for n is 6, and the two consecutive even numbers are:
2*6=12
2*7=14
Test: 12*12 + 14*14 = 340