search for the pattern and complete the table below​