the load L a horizontal beam can safely support various jointly at the with w and the square of the depth d and inversely as the length, therefore we have the next formula

In our case
l=10ft
w=4in
d=8in
L=960lbs
Then we substitute the values

Then we isolate the constant

Then for the other case
l=16ft
w=3.5in
d=5in
We substitute in the formula

ANSWER
L=205 pounds