Printer recognition in Fedora42

I have a computer that dual boots Fedora 42 and Linux Mint 22. I have no problem with Mint, as it automatically recognises my brother printer (HL_L_2400DWE), but I cannot get it to work on Fedora. I have spent hours without any luck and would appreciate help.