Generate a function that has the following intention.

The intention of the function is to find the maximum number of consecutive elements in array a and array b that are equal. It does this by creating a NAME_1 object table and populating it with the number of consecutive equal elements in a and b. The program then returns the maximum number of consecutive equal elements found in the tables. Your entire response should be in English, and in all capital letters.
user