Google Sheets filter has mismatched range sizes example- Filtering student names and grades- After correcting mismatched rows

A Google Sheets "FILTER has mismatched range sizes" example- Filtering student names and grades- The fixed formula after correcting the mismatched rows