Hi,
Check the printer driver settings: go to the Start menu > Settings > Bluetooth & devices > Printers & Scanners > select your HP PageWide MFP 377dw printer > Printing preferences > Paper/Quality. You should see an option there to select the paper tray.
Also, if you are printing from an Office application, click on "Printer properties" (or "Printer settings") on the print screen and check whether the tray is set to "Auto" or if the correct tray has been selected.
If the problem persists, you might be using a generic driver instead of the specific printer driver; I recommend reinstalling it.
You can remove the printer by going to the Start menu > Settings > Bluetooth & devices > Printers & Scanners, selecting the HP printer, and choosing the option to remove it.
Once the printer has been removed, download the printer driver from this link:
https://support.hp.com/us-en/drivers/hp-pagewide-377-multifunction-printer-series/model/8878965
After downloading, run the installer and follow the on-screen instructions.
While this is not a Microsoft website, it is the official site for the HP PageWide Pro 377dw.
Thanks