Baking 2 dishes needing slightly different temperatures and time
On a practical basis?  40 to 45 min.  That is, bake it for 40 min and then check it to see if it's done (or otherwise check it 5 minutes earlier than you otherwise would).

The difference between 350F and 375F in actual cooking is generally dwarfed by the temperature inaccuracy of home ovens.